From 91f5e9b3914f4e804e25231c8c005ef6b4cb971e Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sat, 6 Nov 2021 15:54:20 +0200 Subject: [PATCH] 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 (cherry picked from commit 458c1475abd2e6a81f59d1e1f83e0d564c101682) --- 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 d0c7a5348e..6b230dd15b 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -14084,7 +14084,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; -- 2.39.5