diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-02 14:38:15 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-02 15:40:10 -0500 |
| commit | 6b98d34fdfeeafeb51887044f02f2496d2807bfd (patch) | |
| tree | c10bdec4cb802e046bfdfeab6be26baaa36b107b /sharpd/sharp_zebra.h | |
| parent | 6205e5dc070c2cbb34dfc33898e185f7f6058d75 (diff) | |
sharpd: Abstract the route install/delete functions a bit
Abstract the route install/delete functions a bit to allow me to
expand on them in the with future commits.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_zebra.h')
| -rw-r--r-- | sharpd/sharp_zebra.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sharpd/sharp_zebra.h b/sharpd/sharp_zebra.h index ffe21df9b8..7326056cae 100644 --- a/sharpd/sharp_zebra.h +++ b/sharpd/sharp_zebra.h @@ -29,4 +29,10 @@ extern void route_add(struct prefix *p, uint8_t instance, struct nexthop_group *nhg); extern void route_delete(struct prefix *p, uint8_t instance); extern void sharp_zebra_nexthop_watch(struct prefix *p, bool watch); + +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); #endif |
