]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: solve SA issue in bgp_evpn_unconfigure_export_rt_for_vrf
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Fri, 15 Dec 2017 10:09:04 +0000 (02:09 -0800)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Fri, 15 Dec 2017 10:09:04 +0000 (02:09 -0800)
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn.c

index cb74515b9106f806503ed8f5c904b16e0be75264..8846a894bc4522ff9368ad304de3dd3d922ed5e1 100644 (file)
@@ -3264,7 +3264,7 @@ void bgp_evpn_unconfigure_export_rt_for_vrf(struct bgp *bgp_vrf,
                list_delete_node(bgp_vrf->vrf_export_rtl, node_to_del);
 
        /* fall back to auto-generated RT if this was the last RT */
-       if (list_isempty(bgp_vrf->vrf_export_rtl)) {
+       if (bgp_vrf->vrf_export_rtl && list_isempty(bgp_vrf->vrf_export_rtl)) {
                UNSET_FLAG(bgp_vrf->vrf_flags, BGP_VRF_EXPORT_RT_CFGD);
                evpn_auto_rt_export_add_for_vrf(bgp_vrf);
        }