summaryrefslogtreecommitdiff
path: root/pbrd/pbr_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-11-25 09:15:07 -0500
committerGitHub <noreply@github.com>2023-11-25 09:15:07 -0500
commit0dc7704fd50a035c85dea58408abea80c4816f15 (patch)
tree213419de02df4c18b899c5daebc249a5f243fd3a /pbrd/pbr_zebra.c
parentca8fb16192537973033913a57f583adcffb13cce (diff)
parent5a40f2b0e75bbb43c0d6e2f9cfe190dfaa61f386 (diff)
Merge pull request #14867 from opensourcerouting/zclient-options-cleanup
*: clean up `zclient` options
Diffstat (limited to 'pbrd/pbr_zebra.c')
-rw-r--r--pbrd/pbr_zebra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c
index 2e2302b29d..dd15beaff4 100644
--- a/pbrd/pbr_zebra.c
+++ b/pbrd/pbr_zebra.c
@@ -222,6 +222,8 @@ static int rule_notify_owner(ZAPI_CALLBACK_ARGS)
static void zebra_connected(struct zclient *zclient)
{
DEBUGD(&pbr_dbg_zebra, "%s: Registering for fun and profit", __func__);
+
+ zebra_route_notify_send(ZEBRA_ROUTE_NOTIFY_REQUEST, zclient, true);
zclient_send_reg_requests(zclient, VRF_DEFAULT);
}
@@ -401,9 +403,7 @@ static zclient_handler *const pbr_handlers[] = {
void pbr_zebra_init(void)
{
- struct zclient_options opt = { .receive_notify = true };
-
- zclient = zclient_new(master, &opt, pbr_handlers,
+ zclient = zclient_new(master, &zclient_options_default, pbr_handlers,
array_size(pbr_handlers));
zclient_init(zclient, ZEBRA_ROUTE_PBR, 0, &pbr_privs);