summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-10-24 15:25:54 +0200
committerDonald Sharp <sharpd@nvidia.com>2022-11-04 18:34:27 +0100
commitf3c6dd49f47d4d092a43d55d4af87521a323b3ae (patch)
tree8ea9464fc6d205cd4c96cfb9bedc8b8de6e34dd4 /pbrd/pbr_main.c
parentlib, vtysh: Add ability to specify resilient nhgs (diff)
downloadfrr-f3c6dd49f47d4d092a43d55d4af87521a323b3ae.tar.xz
frr-f3c6dd49f47d4d092a43d55d4af87521a323b3ae.zip
*: Add ability for daemons to notice resilience changes
This patch just introduces the callback mechanism for the resilient nexthop changes so that upper level daemons can take advantage of the change. This does nothing at this point but just call some code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pbrd/pbr_main.c')
-rw-r--r--pbrd/pbr_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pbrd/pbr_main.c b/pbrd/pbr_main.c
index 59aa3676b..28a7b62d1 100644
--- a/pbrd/pbr_main.c
+++ b/pbrd/pbr_main.c
@@ -160,10 +160,9 @@ int main(int argc, char **argv, char **envp)
pbr_debug_init();
- nexthop_group_init(pbr_nhgroup_add_cb,
+ nexthop_group_init(pbr_nhgroup_add_cb, pbr_nhgroup_modify_cb,
pbr_nhgroup_add_nexthop_cb,
- pbr_nhgroup_del_nexthop_cb,
- pbr_nhgroup_delete_cb);
+ pbr_nhgroup_del_nexthop_cb, pbr_nhgroup_delete_cb);
/*
* So we safely ignore these commands since