diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2020-08-18 16:53:44 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-27 16:13:48 -0400 | 
| commit | 79924520085ec6a7ac368e62226e3ad5ff9cc025 (patch) | |
| tree | c06fb55f0ffd1c1d47c39a1c41d8a9b02eba1e46 /lib/nexthop_group.h | |
| parent | da2f67007844948e5d0d2ecdf24ae7124468e47a (diff) | |
lib: break up show nexthop API a bit for reuse
Not everything cares about the vrf and backup info. Break
up the API to add a simple version to just write gateway/interface
info.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.h')
| -rw-r--r-- | lib/nexthop_group.h | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index 0b5ac91bb2..3024a01357 100644 --- a/lib/nexthop_group.h +++ b/lib/nexthop_group.h @@ -135,6 +135,8 @@ extern bool nexthop_group_equal(const struct nexthop_group *nhg1,  extern struct nexthop_group_cmd *nhgc_find(const char *name); +extern void nexthop_group_write_nexthop_simple(struct vty *vty, +					       const struct nexthop *nh);  extern void nexthop_group_write_nexthop(struct vty *vty,  					const struct nexthop *nh);  | 
