sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

[vnet] Add ref_count of router interfaces for vnet

Open liron-ze opened this issue 4 years ago • 2 comments

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

liron-ze avatar Sep 03 '20 07:09 liron-ze

retest vs please

prsunny avatar Sep 03 '20 21:09 prsunny

retest vs please

prsunny avatar Oct 06 '20 15:10 prsunny