From: Donald Sharp Date: Sat, 10 Mar 2018 20:16:09 +0000 (-0500) Subject: lib: Expose nhgc_find command X-Git-Tag: frr-5.0-dev~157^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d604266ced3bebd0907c76908e70e70884a353cc;p=matthieu%2Ffrr.git lib: Expose nhgc_find command Expose to the world the nhgc_find command so that interested parties can find a stored nexthop group. Signed-off-by: Donald Sharp --- diff --git a/lib/nexthop_group.c b/lib/nexthop_group.c index 2012fbdbed..0cfbeb8f40 100644 --- a/lib/nexthop_group.c +++ b/lib/nexthop_group.c @@ -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; diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index 563799dc8f..b22e083e6b 100644 --- a/lib/nexthop_group.h +++ b/lib/nexthop_group.h @@ -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