From d4f7497ebd0e7a9735d8b74d60166707119686bf Mon Sep 17 00:00:00 2001 From: Mitesh Kanjariya Date: Tue, 10 Apr 2018 03:31:05 -0700 Subject: [PATCH] bgpd: no advertise ipv6 unicast comand should unset the af_flags no advertise ipv6 unicast command should unset the corresponding af_flag in bgp_vrf rather than the vrf_flags. Signed-off-by: Mitesh Kanjariya --- bgpd/bgp_evpn_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 4f3f0d5559..2f0f8b34a4 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -2884,7 +2884,7 @@ DEFUN (no_bgp_evpn_advertise_type5, if (CHECK_FLAG(bgp_vrf->af_flags[AFI_L2VPN][SAFI_EVPN], BGP_L2VPN_EVPN_ADVERTISE_IPV6_UNICAST)) { bgp_evpn_withdraw_type5_routes(bgp_vrf, afi, safi); - UNSET_FLAG(bgp_vrf->vrf_flags, + UNSET_FLAG(bgp_vrf->af_flags[AFI_L2VPN][SAFI_EVPN], BGP_L2VPN_EVPN_ADVERTISE_IPV6_UNICAST); } } -- 2.39.5