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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2023-08-31 11:01:44 -04:00
parent c4f761d8ea
commit 2bc08688da

View File

@ -15571,7 +15571,7 @@ DEFUN (show_bgp_peerhash,
struct bgp *bgp; struct bgp *bgp;
for (ALL_LIST_ELEMENTS_RO(instances, node, bgp)) { for (ALL_LIST_ELEMENTS_RO(instances, node, bgp)) {
vty_out(vty, "BGP: %s\n", bgp->name); vty_out(vty, "BGP: %s\n", bgp->name_pretty);
hash_iterate(bgp->peerhash, show_bgp_peerhash_entry, hash_iterate(bgp->peerhash, show_bgp_peerhash_entry,
vty); vty);
} }