diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-11-25 09:15:07 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-25 09:15:07 -0500 |
| commit | 0dc7704fd50a035c85dea58408abea80c4816f15 (patch) | |
| tree | 213419de02df4c18b899c5daebc249a5f243fd3a /staticd/static_zebra.c | |
| parent | ca8fb16192537973033913a57f583adcffb13cce (diff) | |
| parent | 5a40f2b0e75bbb43c0d6e2f9cfe190dfaa61f386 (diff) | |
Merge pull request #14867 from opensourcerouting/zclient-options-cleanup
*: clean up `zclient` options
Diffstat (limited to 'staticd/static_zebra.c')
| -rw-r--r-- | staticd/static_zebra.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 1489f53b5b..68761c0084 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -166,6 +166,7 @@ static int route_notify_owner(ZAPI_CALLBACK_ARGS) static void zebra_connected(struct zclient *zclient) { + zebra_route_notify_send(ZEBRA_ROUTE_NOTIFY_REQUEST, zclient, true); zclient_send_reg_requests(zclient, VRF_DEFAULT); static_fixup_vrf_ids(vrf_info_lookup(VRF_DEFAULT)); @@ -531,14 +532,12 @@ static zclient_handler *const static_handlers[] = { void static_zebra_init(void) { - struct zclient_options opt = { .receive_notify = true }; - hook_register_prio(if_real, 0, static_ifp_create); hook_register_prio(if_up, 0, static_ifp_up); hook_register_prio(if_down, 0, static_ifp_down); hook_register_prio(if_unreal, 0, static_ifp_destroy); - zclient = zclient_new(master, &opt, static_handlers, + zclient = zclient_new(master, &zclient_options_default, static_handlers, array_size(static_handlers)); zclient_init(zclient, ZEBRA_ROUTE_STATIC, 0, &static_privs); |
