]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: BGP should not ignore the VNI add notification if it is not live currently
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Wed, 12 Jul 2017 20:44:02 +0000 (13:44 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Aug 2017 14:28:54 +0000 (10:28 -0400)
Ticket: CM-17053
Review: CCR-6446
Unit-test: Manual

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn.c

index 110ff3a17b6f9c8c260295a1139c744f0220a969..ff861a7324ba665ba029fff60a7b96d722f76390 100644 (file)
@@ -2685,7 +2685,8 @@ int bgp_evpn_local_vni_add(struct bgp *bgp, vni_t vni,
        /* Lookup VNI. If present and no change, exit. */
        vpn = bgp_evpn_lookup_vni(bgp, vni);
        if (vpn) {
-               if (IPV4_ADDR_SAME(&vpn->originator_ip, &originator_ip))
+               if (is_vni_live(vpn)
+                   && IPV4_ADDR_SAME(&vpn->originator_ip, &originator_ip))
                        /* Probably some other param has changed that we don't
                         * care about. */
                        return 0;