summaryrefslogtreecommitdiffstats
path: root/sharpd/sharp_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-28 14:12:32 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-03-01 22:15:02 +0100
commit91529dc88d20394b64488ade43ec48454f5eb7c6 (patch)
tree7114e373a3b167d6a1ea36c558f1a76e092c9410 /sharpd/sharp_zebra.c
parentsharpd: Add cli to allow vrf route installation (diff)
downloadfrr-91529dc88d20394b64488ade43ec48454f5eb7c6.tar.xz
frr-91529dc88d20394b64488ade43ec48454f5eb7c6.zip
sharpd: Add ability to pass vrf we want to watch
Add the ability for the sharp zebra code to pass down the vrf that we want to watch. At this point in time, we cannot use it. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_zebra.c')
-rw-r--r--sharpd/sharp_zebra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_zebra.c b/sharpd/sharp_zebra.c
index 942040b80..f1e83628c 100644
--- a/sharpd/sharp_zebra.c
+++ b/sharpd/sharp_zebra.c
@@ -323,7 +323,7 @@ void route_delete(struct prefix *p, vrf_id_t vrf_id, uint8_t instance)
return;
}
-void sharp_zebra_nexthop_watch(struct prefix *p, bool import,
+void sharp_zebra_nexthop_watch(struct prefix *p, vrf_id_t vrf_id, bool import,
bool watch, bool connected)
{
int command;
@@ -340,7 +340,7 @@ void sharp_zebra_nexthop_watch(struct prefix *p, bool import,
command = ZEBRA_IMPORT_ROUTE_UNREGISTER;
}
- if (zclient_send_rnh(zclient, command, p, connected, VRF_DEFAULT) < 0)
+ if (zclient_send_rnh(zclient, command, p, connected, vrf_id) < 0)
zlog_warn("%s: Failure to send nexthop to zebra",
__PRETTY_FUNCTION__);
}