summaryrefslogtreecommitdiff
path: root/pbrd/pbr_main.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2020-05-27 17:39:41 -0400
committerStephen Worley <sworley@cumulusnetworks.com>2020-09-28 12:40:59 -0400
commit0de1db8f3bd8d25be9dbebc3a090f85d60b41b14 (patch)
tree28e12799ca0198a29582c6f005206d5f5b42c792 /pbrd/pbr_main.c
parent9c6c48bc101f8f4b47fa9f373e436c85d04608cf (diff)
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 <sworley@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_main.c')
-rw-r--r--pbrd/pbr_main.c7
1 files changed, 3 insertions, 4 deletions
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