diff options
author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-07-12 22:44:02 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-08 16:28:54 +0200 |
commit | 2f1ac16a7e683970a9025ad29572f54137e31d3e (patch) | |
tree | 444513646cfdf752290097816fa297f4f8059ca4 /bgpd/bgp_evpn.c | |
parent | zebra: Guard debugs in interface speed check (diff) | |
download | frr-2f1ac16a7e683970a9025ad29572f54137e31d3e.tar.xz frr-2f1ac16a7e683970a9025ad29572f54137e31d3e.zip |
bgpd: BGP should not ignore the VNI add notification if it is not live currently
Ticket: CM-17053
Review: CCR-6446
Unit-test: Manual
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_evpn.c')
-rw-r--r-- | bgpd/bgp_evpn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 110ff3a17..ff861a732 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -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; |