From a251884bff9ef5fac7ec1ff399fb0f5472565b55 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 20 Aug 2020 11:56:05 -0400 Subject: 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 --- pbrd/pbr_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbrd/pbr_vty.c') 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)); -- cgit v1.2.3