From 2bc08688da60d140c25f2d8254d1660e48e796bb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 31 Aug 2023 11:01:44 -0400 Subject: [PATCH] bgpd: When using `show bgp peerhash` don't display (NULL) Fix up the output to not display a (NULL) output for the bgp name Signed-off-by: Donald Sharp --- bgpd/bgp_route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 629df2b480..b1b59e5a43 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -15571,8 +15571,8 @@ DEFUN (show_bgp_peerhash, struct bgp *bgp; for (ALL_LIST_ELEMENTS_RO(instances, node, bgp)) { - vty_out(vty, "BGP: %s\n", bgp->name); - hash_iterate(bgp->peerhash, show_bgp_peerhash_entry, + vty_out(vty, "BGP: %s\n", bgp->name_pretty); + hash_iterate(bgp->peerhash, show_bgp_peerhash_entry, vty); }