diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-10 21:12:52 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-14 13:32:39 +0100 |
commit | 31919191561fa9b978f8c3cf713e30ed6fb20889 (patch) | |
tree | 59c41374f64717c5301f8dc1087892886e892494 /lib/nexthop.h | |
parent | Merge pull request #1880 from pguibert6WIND/enforce_vrf_netns_enable (diff) | |
download | frr-31919191561fa9b978f8c3cf713e30ed6fb20889.tar.xz frr-31919191561fa9b978f8c3cf713e30ed6fb20889.zip |
lib: Add nexthop-group cli
Add a nexthop-group cli:
nexthop-group NAME
nexthop A
nexthop B
nexthop C
!
This will allow interested parties to hook into the cli for
nexthops. Users can add callback functions for add/delete
of a nexthop group as well as add/delete of each individual
nexthop.
Future work( PBR and static routes ) will take advantage
of this.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop.h')
-rw-r--r-- | lib/nexthop.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 0ca8a0063..568243d3a 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -118,6 +118,8 @@ void nexthop_add_labels(struct nexthop *, enum lsp_types_t, u_int8_t, mpls_label_t *); void nexthop_del_labels(struct nexthop *); +extern bool nexthop_same(const struct nexthop *nh1, const struct nexthop *nh2); + extern const char *nexthop_type_to_str(enum nexthop_types_t nh_type); extern int nexthop_same_no_recurse(const struct nexthop *next1, const struct nexthop *next2); |