summaryrefslogtreecommitdiffstats
path: root/sharpd/sharp_nht.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 /sharpd/sharp_nht.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 'sharpd/sharp_nht.c')
-rw-r--r--sharpd/sharp_nht.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sharpd/sharp_nht.c b/sharpd/sharp_nht.c
index a90387186..da1489976 100644
--- a/sharpd/sharp_nht.c
+++ b/sharpd/sharp_nht.c
@@ -124,6 +124,10 @@ static void sharp_nhgroup_add_cb(const char *name)
sharp_nhg_rb_add(&nhg_head, snhg);
}
+static void sharp_nhgroup_modify_cb(const struct nexthop_group_cmd *nhgc)
+{
+}
+
static void sharp_nhgroup_add_nexthop_cb(const struct nexthop_group_cmd *nhgc,
const struct nexthop *nhop)
{
@@ -215,7 +219,8 @@ void sharp_nhgroup_init(void)
sharp_nhg_rb_init(&nhg_head);
nhg_id = zclient_get_nhg_start(ZEBRA_ROUTE_SHARP);
- nexthop_group_init(sharp_nhgroup_add_cb, sharp_nhgroup_add_nexthop_cb,
+ nexthop_group_init(sharp_nhgroup_add_cb, sharp_nhgroup_modify_cb,
+ sharp_nhgroup_add_nexthop_cb,
sharp_nhgroup_del_nexthop_cb,
sharp_nhgroup_delete_cb);
}