]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Expose nhgc_find command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 10 Mar 2018 20:16:09 +0000 (15:16 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Mar 2018 12:32:39 +0000 (08:32 -0400)
Expose to the world the nhgc_find command so that
interested parties can find a stored nexthop group.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/nexthop_group.c
lib/nexthop_group.h

index 2012fbdbed4de70db222060ad2f27942ff2d8929..0cfbeb8f40891afd9c4fe35cda916bbe27e327a7 100644 (file)
@@ -160,7 +160,7 @@ static void nhgc_delete_nexthops(struct nexthop_group_cmd *nhgc)
        }
 }
 
-static struct nexthop_group_cmd *nhgc_find(const char *name)
+struct nexthop_group_cmd *nhgc_find(const char *name)
 {
        struct nexthop_group_cmd find;
 
index 563799dc8ffa97784c2b4743a23204f9ed704305..b22e083e6bb0ef5d99225bd8f4dc13244cc8db5d 100644 (file)
@@ -85,4 +85,7 @@ void nexthop_group_init(
 
 extern struct nexthop *nexthop_exists(struct nexthop_group *nhg,
                                      struct nexthop *nh);
+
+extern struct nexthop_group_cmd *nhgc_find(const char *name);
+
 #endif