From 749d0f27ab37db203a61e371fc0bd3d504799932 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 28 Jan 2021 16:12:03 +0200 Subject: [PATCH] bgpd: Show NoNeg instead of bad parsing `show bgp summary` if disabled Signed-off-by: Donatas Abraitis --- bgpd/bgp_vty.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 4d6141ee84..514af5b823 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -11180,7 +11180,7 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi, [afi] [pfx_rcd_safi]); } else { - vty_out(vty, " NoNeg"); + vty_out(vty, " NoNeg"); } if (paf && PAF_SUBGRP(paf)) { @@ -11197,6 +11197,8 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi, (PAF_SUBGRP( paf)) ->scount); + } else { + vty_out(vty, " NoNeg"); } } else { if (CHECK_FLAG(peer->flags, -- 2.39.5