File tree 1 file changed +10
-9
lines changed
1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -2347,6 +2347,15 @@ bool EvpnRemoteVnip2pOrch::addOperation(const Request& request)
2347
2347
return true ;
2348
2348
}
2349
2349
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
+
2350
2359
VxlanTunnelOrch* tunnel_orch = gDirectory .get <VxlanTunnelOrch*>();
2351
2360
Port tunnelPort, vlanPort;
2352
2361
VxlanTunnelMapOrch* vxlan_tun_map_orch = gDirectory .get <VxlanTunnelMapOrch*>();
@@ -2373,16 +2382,8 @@ bool EvpnRemoteVnip2pOrch::addOperation(const Request& request)
2373
2382
2374
2383
if (gPortsOrch ->isVlanMember (vlanPort, tunnelPort))
2375
2384
{
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
- }
2384
2385
SWSS_LOG_WARN (" tunnelPort %s already member of vid %d" ,
2385
- remote_vtep.c_str (),vlan_id);
2386
+ remote_vtep.c_str (),vlan_id);
2386
2387
vtep_ptr->increment_spurious_imr_add (remote_vtep);
2387
2388
return true ;
2388
2389
}
You can’t perform that action at this time.
0 commit comments