diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-27 09:25:32 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-11-27 09:25:32 -0500 |
| commit | 019a82cbbc6efac781e92ae82f8c84e5e92d39d3 (patch) | |
| tree | e25ed818ae900054b656c8bfcbe655d5b26cf9f1 /zebra/zebra_rib.c | |
| parent | 8a71d93d85a6d180938366c2ad50ac9702721698 (diff) | |
zebra: Allow zebra_find_client to match on instance as well
zebra_find_client needs to match on instance as well so
protocols like ospfd will work correctly for notification.
Modify the zebra_find_client code to accept the instance
number and to pass it in appropriately.
Signed-off-by: Doanld Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index b7b68b7272..791f319120 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -1033,8 +1033,9 @@ int rib_install_kernel(struct route_node *rn, struct route_entry *re, * know that they've lost */ if (old && old != re) - zsend_route_notify_owner(old->type, old->vrf_id, - p, ZAPI_ROUTE_BETTER_ADMIN_WON); + zsend_route_notify_owner(old->type, old->instance, + old->vrf_id, p, + ZAPI_ROUTE_BETTER_ADMIN_WON); /* * Make sure we update the FPM any time we send new information to @@ -1055,10 +1056,10 @@ int rib_install_kernel(struct route_node *rn, struct route_entry *re, else UNSET_FLAG(nexthop->flags, NEXTHOP_FLAG_FIB); } - zsend_route_notify_owner(re->type, re->vrf_id, + zsend_route_notify_owner(re->type, re->instance, re->vrf_id, p, ZAPI_ROUTE_INSTALLED); } else - zsend_route_notify_owner(re->type, re->vrf_id, + zsend_route_notify_owner(re->type, re->instance, re->vrf_id, p, ZAPI_ROUTE_FAIL_INSTALL); return ret; |
