File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2347,6 +2347,15 @@ bool EvpnRemoteVnip2pOrch::addOperation(const Request& request)
23472347 return true ;
23482348 }
23492349
2350+ EvpnNvoOrch* evpn_orch = gDirectory .get <EvpnNvoOrch*>();
2351+ auto vtep_ptr = evpn_orch->getEVPNVtep ();
2352+ if (!vtep_ptr)
2353+ {
2354+ SWSS_LOG_WARN (" Remote VNI add: Source VTEP not found. remote=%s vid=%d" ,
2355+ remote_vtep.c_str (), vlan_id);
2356+ return true ;
2357+ }
2358+
23502359 VxlanTunnelOrch* tunnel_orch = gDirectory .get <VxlanTunnelOrch*>();
23512360 Port tunnelPort, vlanPort;
23522361 VxlanTunnelMapOrch* vxlan_tun_map_orch = gDirectory .get <VxlanTunnelMapOrch*>();
@@ -2373,16 +2382,8 @@ bool EvpnRemoteVnip2pOrch::addOperation(const Request& request)
23732382
23742383 if (gPortsOrch ->isVlanMember (vlanPort, tunnelPort))
23752384 {
2376- EvpnNvoOrch* evpn_orch = gDirectory .get <EvpnNvoOrch*>();
2377- auto vtep_ptr = evpn_orch->getEVPNVtep ();
2378- if (!vtep_ptr)
2379- {
2380- SWSS_LOG_WARN (" Remote VNI add: VTEP not found. remote=%s vid=%d" ,
2381- remote_vtep.c_str (),vlan_id);
2382- return true ;
2383- }
23842385 SWSS_LOG_WARN (" tunnelPort %s already member of vid %d" ,
2385- remote_vtep.c_str (),vlan_id);
2386+ remote_vtep.c_str (),vlan_id);
23862387 vtep_ptr->increment_spurious_imr_add (remote_vtep);
23872388 return true ;
23882389 }
You can’t perform that action at this time.
0 commit comments