[cmaster-next] [PATCH] bgpd: Fix 'show ip bgp' to not change it's output
Donald Sharp
sharpd at cumulusnetworks.com
Fri Dec 2 13:57:04 EST 2016
For unicast routes do not change the output of the 'show ip bgp' command.
This will allow people with existing scripts to continue to work.
Signed-off-by: Donald Sharp <sharpd at cumulusnetworks.com>
---
bgpd/bgp_route.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 23ecefa..c2c6304 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6329,7 +6329,7 @@ route_vty_out (struct vty *vty, struct prefix *p,
vty_out (vty, "%s", VTY_NEWLINE);
#if ENABLE_BGP_VNC
/* prints an additional line, indented, with VNC info, if present */
- if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP) || (safi == SAFI_UNICAST))
+ if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_ENCAP))
rfapi_vty_out_vncinfo(vty, p, binfo, safi);
#endif
}
--
2.7.4
More information about the dev
mailing list