summaryrefslogtreecommitdiffstats
path: root/sharpd/sharp_zebra.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-28 13:51:41 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-03-01 22:12:05 +0100
commit0cf08685d2ed61659ba11695d142b56ebbc13a9f (patch)
tree359574d94c8537124cb2c27b05639918d99c59e5 /sharpd/sharp_zebra.h
parentMerge pull request #3877 from qlyoung/remove-strncpy (diff)
downloadfrr-0cf08685d2ed61659ba11695d142b56ebbc13a9f.tar.xz
frr-0cf08685d2ed61659ba11695d142b56ebbc13a9f.zip
sharpd: Setup route installation to be able to select vrf to use
Modify the sharp code to allow for vrf route installation. At this point in time the code is nascent. Future commits will turn on this behavior. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_zebra.h')
-rw-r--r--sharpd/sharp_zebra.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/sharpd/sharp_zebra.h b/sharpd/sharp_zebra.h
index b219022f0..7c3c39c89 100644
--- a/sharpd/sharp_zebra.h
+++ b/sharpd/sharp_zebra.h
@@ -25,15 +25,16 @@
extern void sharp_zebra_init(void);
extern void vrf_label_add(vrf_id_t vrf_id, afi_t afi, mpls_label_t label);
-extern void route_add(struct prefix *p, uint8_t instance,
+extern void route_add(struct prefix *p, vrf_id_t, uint8_t instance,
struct nexthop_group *nhg);
-extern void route_delete(struct prefix *p, uint8_t instance);
+extern void route_delete(struct prefix *p, vrf_id_t vrf_id, uint8_t instance);
extern void sharp_zebra_nexthop_watch(struct prefix *p, bool import,
bool watch, bool connected);
-extern void sharp_install_routes_helper(struct prefix *p, uint8_t instance,
- struct nexthop_group *nhg,
- uint32_t routes);
-extern void sharp_remove_routes_helper(struct prefix *p, uint8_t instance,
- uint32_t routes);
+extern void sharp_install_routes_helper(struct prefix *p, vrf_id_t vrf_id,
+ uint8_t instance,
+ struct nexthop_group *nhg,
+ uint32_t routes);
+extern void sharp_remove_routes_helper(struct prefix *p, vrf_id_t vrf_id,
+ uint8_t instance, uint32_t routes);
#endif