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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-03-10 15:16:09 -05:00
parent 3191919156
commit d604266ced
2 changed files with 4 additions and 1 deletions

View 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;

View 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