diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-08-31 11:01:44 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-08-31 11:01:44 -0400 |
| commit | 2bc08688da60d140c25f2d8254d1660e48e796bb (patch) | |
| tree | d1eaf59391ee396a0ca54ec082fafb6128d65ea1 | |
| parent | c4f761d8eae512b901369aa8962c588e202704f1 (diff) | |
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>
| -rw-r--r-- | bgpd/bgp_route.c | 4 |
1 files 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); } |
