sonic-swss
sonic-swss copied to clipboard
Check resource release or not before removing local vtep.
What I did we have added check to avoid the user tunnel be removed earlier than local vtep, and this patch is to add to check the vlan vni map which is also be removed earlier than local vtep. Why I did it testing on delete L2 vni , in test it will delete vni via restconf at same time. if not check all evpn config deleted before delete vetp affect some resource can't released.
Mar 10 09:11:32.084398 accton-mlag-demo-001-leaf1 NOTICE swss#orchagent: :- delTunnelUser: diprefcnt for remote 10.0.0.29 = -1
Mar 10 09:11:32.084538 accton-mlag-demo-001-leaf1 ERR swss#orchagent: :- removeVlan: Failed to remove non-empty VLAN Vlan10
Mar 10 09:11:32.084688 accton-mlag-demo-001-leaf1 NOTICE swss#orchagent: :- delOperation: Vxlan tunnel 'vtep1' was removed
Mar 10 09:11:32.084688 accton-mlag-demo-001-leaf1 WARNING swss#orchagent: :- delOperation: NVO Delete failed as VTEP Ptr is NULL
Mar 10 09:11:32.085225 accton-mlag-demo-001-leaf1 NOTICE swss#orchagent: :- removeFdbEntry: FdbOrch RemoveFDBEntry: mac=04:f8:f8:6a:f9:91 bv_id=0x260000000005e2 origin 4
Mar 10 09:11:32.085246 accton-mlag-demo-001-leaf1 NOTICE swss#orchagent: :- deleteFdbEntryFromSavedFDB: FDB entry found in saved fdb. deleting...mac=04:f8:f8:6a:f9:91 vlan_id=0x3e8 origin:4 port:Port_EVPN_10.0.0.29
How I verified it testing on delete L2 vni 10 times via restconf, the issue without happen by checking syslog. Details if related