[root@kunpeng82 scripts]# vtep-ctl del-ls ls0 2020-07-09T09:46:02Z|00002|ovsdb_idl|WARN|transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} vtep-ctl: transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep | grep ls0 bb0b536c-be0c-400f-9a77-9740d58b9625 "" "ls0" {} [] 33 [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep | grep bb0b536c-be0c-400f-9a77-9740d58b9625 bb0b536c-be0c-400f-9a77-9740d58b9625 "" "ls0" {} [] 33 unknown-dst d3e0f968-7bae-461e-846f-c3e04edbe0c3 "" 1ebdfa17-c86f-4d66-a4b3-6422125fc225 bb0b536c-be0c-400f-9a77-9740d58b9625 [root@kunpeng82 scripts]# vtep-ctl list-local-macs ls0 ucast-mac-local mcast-mac-local [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# vtep-ctl list-local-macs ls1 ucast-mac-local mcast-mac-local [root@kunpeng82 scripts]# vtep-ctl list-local-macs ls2 ucast-mac-local mcast-mac-local unknown-dst -> vxlan_over_ipv4/192.168.16.81 [root@kunpeng82 scripts]# vtep-ctl del-ls ls0 2020-07-09T09:54:22Z|00002|ovsdb_idl|WARN|transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} vtep-ctl: transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} [root@kunpeng82 scripts]# vtep-ctl del-ls ls1 [root@kunpeng82 scripts]# vtep-ctl del-ls ls0 2020-07-09T09:54:53Z|00002|ovsdb_idl|WARN|transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} vtep-ctl: transaction error: {"details":"cannot delete Logical_Switch row bb0b536c-be0c-400f-9a77-9740d58b9625 because of 1 remaining reference(s)","error":"referential integrity violation"} [root@kunpeng82 scripts]# vtep-ctl list-ls ls0 ls2 [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep Mcast_Macs_Remote Mcast_Macs_Remote table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst d3e0f968-7bae-461e-846f-c3e04edbe0c3 "" 1ebdfa17-c86f-4d66-a4b3-6422125fc225 bb0b536c-be0c-400f-9a77-9740d58b9625 [root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep | grep bb0b536c-be0c-400f-9a77-9740d58b9625 -B 3 Logical_Switch table _uuid description name other_config replication_mode tunnel_key ------------------------------------ ----------- ----- ------------ ---------------- ---------- bb0b536c-be0c-400f-9a77-9740d58b9625 "" "ls0" {} [] 33 -- Mcast_Macs_Remote table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst d3e0f968-7bae-461e-846f-c3e04edbe0c3 "" 1ebdfa17-c86f-4d66-a4b3-6422125fc225 bb0b536c-be0c-400f-9a77-9740d58b9625 [root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep Mcast_Macs_Remote Mcast_Macs_Remote table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst d3e0f968-7bae-461e-846f-c3e04edbe0c3 "" 1ebdfa17-c86f-4d66-a4b3-6422125fc225 bb0b536c-be0c-400f-9a77-9740d58b9625 [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# vtep-ctl clear-remote-macs ls0 [root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep Mcast_Macs_Remote Mcast_Macs_Remote table MAC _uuid ipaddr locator_set logical_switch --- ----- ------ ----------- -------------- [root@kunpeng82 scripts]#
[root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep | grep d3e0f968-7bae-461e-846f-c3e04edbe0c3 unknown-dst d3e0f968-7bae-461e-846f-c3e04edbe0c3 "" 4421b27c-1565-4a6a-9e78-8594ab20748b bb0b536c-be0c-400f-9a77-9740d58b9625 [root@kunpeng82 scripts]# vtep-ctl clear-remote-macs ls0 [root@kunpeng82 scripts]# ovsdb-client dump hardware_vtep Mcast_Macs_Remote Mcast_Macs_Remote table MAC _uuid ipaddr locator_set logical_switch --- ----- ------ ----------- -------------- [root@kunpeng82 scripts]# vtep-ctl del-ls ls0 [root@kunpeng82 scripts]# vtep-ctl list-ls ls2 [root@kunpeng82 scripts]#
[root@kunpeng82 devuser]# ovsdb-client dump hardware_vtep | grep 30f659dd-3eed-4711-a119-4231897266da -B 4 Logical_Switch table _uuid description name other_config replication_mode tunnel_key ------------------------------------ ----------- ----- ------------ ---------------- ---------- ef2dcc0e-4459-44b5-988f-aafb9c14c4e9 "" "ls1" {} [] 33 30f659dd-3eed-4711-a119-4231897266da "" "ls2" {} [] 33 -- Mcast_Macs_Local table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst 1df2d63e-94b4-485e-9eab-dad332f61ea2 "" e0600282-790e-47ac-a487-96ebf726baee 30f659dd-3eed-4711-a119-4231897266da [root@kunpeng82 devuser]#
[root@kunpeng82 devuser]# vtep-ctl clear-local-macs ls2 [root@kunpeng82 devuser]# ovsdb-client dump hardware_vtep Mcast_Macs_Local Mcast_Macs_Local table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst a7a1f2eb-1aee-4afc-9d3e-9c8f3021e9b6 "" 62eb00fc-2d78-4994-8eb7-b4dc73f884b9 ef2dcc0e-4459-44b5-988f-aafb9c14c4e9 [root@kunpeng82 devuser]# vtep-ctl clear-local-macs ls2 [root@kunpeng82 devuser]# ovsdb-client dump hardware_vtep Mcast_Macs_Local Mcast_Macs_Local table MAC _uuid ipaddr locator_set logical_switch ----------- ------------------------------------ ------ ------------------------------------ ------------------------------------ unknown-dst a7a1f2eb-1aee-4afc-9d3e-9c8f3021e9b6 "" 62eb00fc-2d78-4994-8eb7-b4dc73f884b9 ef2dcc0e-4459-44b5-988f-aafb9c14c4e9 [root@kunpeng82 devuser]#