From 0de1db8f3bd8d25be9dbebc3a090f85d60b41b14 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 27 May 2020 17:39:41 -0400 Subject: lib,sharpd,pbrd: `set installable` nhg command Add a command `set installable` that allows configured nexthop groups to be treated as separate/installable objects in the RIB. A callback needs to be implemented per daemon to handle installing the NHG into the rib via zapi when this command is set. This patch includes the implementation for sharpd. Signed-off-by: Stephen Worley --- pbrd/pbr_main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pbrd/pbr_main.c') diff --git a/pbrd/pbr_main.c b/pbrd/pbr_main.c index 9a9edd79c6..bae8be4f95 100644 --- a/pbrd/pbr_main.c +++ b/pbrd/pbr_main.c @@ -157,10 +157,9 @@ int main(int argc, char **argv, char **envp) pbr_debug_init(); - nexthop_group_init(pbr_nhgroup_add_cb, - pbr_nhgroup_add_nexthop_cb, - pbr_nhgroup_del_nexthop_cb, - pbr_nhgroup_delete_cb); + nexthop_group_init(pbr_nhgroup_add_cb, pbr_nhgroup_add_nexthop_cb, + pbr_nhgroup_del_nexthop_cb, pbr_nhgroup_delete_cb, + NULL); /* * So we safely ignore these commands since -- cgit v1.2.3