Skip to content

Commit 56c6ec6

Browse files
committed
added sudo to delete ovs bridge
Signed-off-by: Ranjith <[email protected]>
1 parent 129a23f commit 56c6ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/python/api/tnode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def cleanupContainers(self):
142142
# Cleanup all state created by netplugin
143143
def cleanupSlave(self):
144144
self.runCmd("docker ps -a | grep alpine | awk '{print $1}' | xargs -r docker rm -fv ")
145-
self.runCmd("sudo ovs-vsctl list-br | grep contiv | xargs -I % ovs-vsctl del-br % >/dev/null 2>&1")
145+
self.runCmd("sudo ovs-vsctl list-br | grep contiv | xargs -I % sudo ovs-vsctl del-br % >/dev/null 2>&1")
146146
self.runCmd("/sbin/ifconfig | grep -e vport | awk '{print $1}' | xargs -r -n1 -I{} sudo ip link delete {} type veth")
147147
self.runCmd("sudo rm -f /var/run/docker/plugins/netplugin.sock")
148148
self.runCmd("sudo rm -f /tmp/net*")

0 commit comments

Comments
 (0)