summaryrefslogtreecommitdiffstats
path: root/pbrd/pbr_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-08-20 17:56:05 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-08-28 13:51:06 +0200
commita251884bff9ef5fac7ec1ff399fb0f5472565b55 (patch)
treee567a8a17a5fb11760acbdb17d6c035bb4b9e30e /pbrd/pbr_vty.c
parentpbrd: Properly hook back up when vrf is destroyed than recreated (diff)
downloadfrr-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.c2
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));