summaryrefslogtreecommitdiff
path: root/lib/nexthop_group.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-10 16:15:46 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-03-14 08:32:39 -0400
commit1b7bce04d50b9cb5982813a76f844cedd01f02a6 (patch)
tree677dc37937f1cdb31b0e82151c853db6435425cf /lib/nexthop_group.h
parentd604266ced3bebd0907c76908e70e70884a353cc (diff)
lib: Add the ability for other people to call a nexthop write line
Add code to allow nexthops to be written by people who are interested in writing their own nexthop line. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.h')
-rw-r--r--lib/nexthop_group.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h
index b22e083e6b..c2e4c4d757 100644
--- a/lib/nexthop_group.h
+++ b/lib/nexthop_group.h
@@ -21,6 +21,8 @@
#ifndef __NEXTHOP_GROUP__
#define __NEXTHOP_GROUP__
+#include <vty.h>
+
/*
* What is a nexthop group?
*
@@ -88,4 +90,5 @@ extern struct nexthop *nexthop_exists(struct nexthop_group *nhg,
extern struct nexthop_group_cmd *nhgc_find(const char *name);
+extern void nexthop_group_write_nexthop(struct vty *vty, struct nexthop *nh);
#endif