From 46827ae98a459e157803df6acdaf5c0ebc51f140 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Wed, 20 Jul 2016 08:02:04 -0400 Subject: [PATCH] bgpd: Print the correct table in "show ip bgp x.x.x.x" Prior to this change, bgp always identified the routing table used as the default in the output of "show ip bgp x.x.x.x". This fix changes the behavior to use the correct table name. Ticket: CM-10239 Signed-off-by: Don Slice Reviewed-by: Donald Sharp --- bgpd/bgp_route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index fff595d190..fc6db0863d 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -7634,7 +7634,9 @@ route_vty_out_detail_header (struct vty *vty, struct bgp *bgp, { vty_out (vty, ", best #%d", best); if (safi == SAFI_UNICAST) - vty_out (vty, ", table Default-IP-Routing-Table"); + vty_out (vty, ", table %s", + (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT) + ? "Default-IP-Routing-Table" : bgp->name); } else vty_out (vty, ", no best path"); -- 2.39.5