diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-20 17:56:05 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-28 13:51:06 +0200 |
commit | a251884bff9ef5fac7ec1ff399fb0f5472565b55 (patch) | |
tree | e567a8a17a5fb11760acbdb17d6c035bb4b9e30e /lib/nexthop_group.h | |
parent | pbrd: Properly hook back up when vrf is destroyed than recreated (diff) | |
download | frr-a251884bff9ef5fac7ec1ff399fb0f5472565b55.tar.xz frr-a251884bff9ef5fac7ec1ff399fb0f5472565b55.zip |
lib: Allow nexthop simple display to take an alternate ifp name
The nexthop_group_write_nexthop_simple function outputs the
interface name, because we've stored the ifindex. The problem
is that there are ephermeal interfaces in linux that can be
destroyed/recreated. Allow us to keep that data and do something
a bit smarter to allow show run's and other show commands to continue
to work when the interface is deleted.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/nexthop_group.h')
-rw-r--r-- | lib/nexthop_group.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/nexthop_group.h b/lib/nexthop_group.h index 3024a0135..5f7bde0de 100644 --- a/lib/nexthop_group.h +++ b/lib/nexthop_group.h @@ -136,7 +136,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); + const struct nexthop *nh, + char *altifname); extern void nexthop_group_write_nexthop(struct vty *vty, const struct nexthop *nh); |