From dfb4be73e4909c9ea4724c9981c6a14150b2f5fb Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sat, 6 Nov 2021 15:50:56 +0200 Subject: [PATCH] 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 (cherry picked from commit 54d05dea572e923e45e38baec71cc602a3319669) --- 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 8b34b2b8be..d0c7a5348e 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12461,7 +12461,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; -- 2.39.5