From 54d05dea572e923e45e38baec71cc602a3319669 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sat, 6 Nov 2021 15:50:56 +0200 Subject: [PATCH 1/2] bgpd: Set afi by default to AFI_IP6 for `show bgp vrf/view all` AFI/SAFI is handled in bgp_vty_find_and_parse_afi_safi_bgp() properly for IPv4, but not for IPv6. Let's have it enabled for IPv6 by default. Signed-off-by: Donatas Abraitis --- 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 4b798cc264..b72cabc7ef 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12484,7 +12484,7 @@ DEFPY (show_ip_bgp_instance_all, JSON_STR "Increase table width for longer prefixes\n") { - afi_t afi = AFI_IP; + afi_t afi = AFI_IP6; safi_t safi = SAFI_UNICAST; struct bgp *bgp = NULL; int idx = 0; From 458c1475abd2e6a81f59d1e1f83e0d564c101682 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sat, 6 Nov 2021 15:54:20 +0200 Subject: [PATCH 2/2] bgpd: Set afi by default to AFI_IP6 for `show bgp vrf/view detail` AFI/SAFI is handled in bgp_vty_find_and_parse_afi_safi_bgp() properly for IPv4, but not for IPv6. Let's have it enabled for IPv6 by default. Signed-off-by: Donatas Abraitis --- 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 b72cabc7ef..ffd8a8118c 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -14086,7 +14086,7 @@ DEFUN (show_ip_bgp_flowspec_routes_detailed, "Detailed information on flowspec entries\n" JSON_STR) { - afi_t afi = AFI_IP; + afi_t afi = AFI_IP6; safi_t safi = SAFI_UNICAST; struct bgp *bgp = NULL; int idx = 0;