From 458c1475abd2e6a81f59d1e1f83e0d564c101682 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 --- 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; -- 2.39.5