Skip to content

Commit

Permalink
added sudo to delete ovs bridge
Browse files Browse the repository at this point in the history
Signed-off-by: Ranjith <rchirakk@users.noreply.github.com>
  • Loading branch information
rchirakk committed Oct 18, 2017
1 parent 129a23f commit 56c6ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/python/api/tnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def cleanupContainers(self):
# Cleanup all state created by netplugin
def cleanupSlave(self):
self.runCmd("docker ps -a | grep alpine | awk '{print $1}' | xargs -r docker rm -fv ")
self.runCmd("sudo ovs-vsctl list-br | grep contiv | xargs -I % ovs-vsctl del-br % >/dev/null 2>&1")
self.runCmd("sudo ovs-vsctl list-br | grep contiv | xargs -I % sudo ovs-vsctl del-br % >/dev/null 2>&1")
self.runCmd("/sbin/ifconfig | grep -e vport | awk '{print $1}' | xargs -r -n1 -I{} sudo ip link delete {} type veth")
self.runCmd("sudo rm -f /var/run/docker/plugins/netplugin.sock")
self.runCmd("sudo rm -f /tmp/net*")
Expand Down

0 comments on commit 56c6ec6

Please sign in to comment.