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 /pbrd/pbr_vty.c | |
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 'pbrd/pbr_vty.c')
-rw-r--r-- | pbrd/pbr_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index 86d088d44..3ed227dd0 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -627,7 +627,7 @@ pbrms_nexthop_group_write_individual_nexthop( struct pbr_nexthop_cache lookup; struct pbr_nexthop_cache *pnhc; - nexthop_group_write_nexthop_simple(vty, pbrms->nhg->nexthop); + nexthop_group_write_nexthop_simple(vty, pbrms->nhg->nexthop, NULL); memset(&find, 0, sizeof(find)); strlcpy(find.name, pbrms->internal_nhg_name, sizeof(find.name)); |