sonic-swss
sonic-swss copied to clipboard
[vnet] Add ref_count of router interfaces for vnet
What I did Add ref_count of router interfaces for vnet.
Why I did it Due to sequence problems or other reasons, deleting a vnet earlier than deleting the interface bound to this vnet will cause an error.
Aug 26 15:00:35.521764 leaf-237 ERR swss#orchagent: :- meta_generic_validation_remove: object 0x3000000000938 reference count is 1, can't remove Aug 26 15:00:35.522349 leaf-237 ERR swss#orchagent: :- ~VNetVrfObject: Failed to remove virtual router name: Vnet1, rv:-5
How I verified it add Vnet1 bind Ethernet1 to Vnet1 remove Vnet1 remove Ethernet1
retest vs please
retest vs please