summaryrefslogtreecommitdiff
path: root/lib/nexthop.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-10 15:12:52 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-14 08:32:39 -0400
commit31919191561fa9b978f8c3cf713e30ed6fb20889 (patch)
tree59c41374f64717c5301f8dc1087892886e892494 /lib/nexthop.h
parent9fb9dfd963684e14a493705c6c330364f45d2641 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h
index 0ca8a0063a..568243d3a9 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);