diff options
author | Xuan Jia <jason.jiaxuan@gmail.com> | 2017-11-25 02:37:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-25 02:37:49 +0000 |
commit | e5d17cb963fdbfaeff7d7274d5b9bc6c86ced23f (patch) | |
tree | 6a05a09cc2f6f40481538fa9be8b91db46eb6e34 /src/cni/ovsdpdk/teardown_ovsdpdk.sh | |
parent | b80a6c9558a472fad77ef0aadca201f38cfcc841 (diff) | |
parent | a8388222d5d1f11be506e9e79f5e2476c447177e (diff) |
Merge "build ovsdpdk cni during deployment"
Diffstat (limited to 'src/cni/ovsdpdk/teardown_ovsdpdk.sh')
-rwxr-xr-x | src/cni/ovsdpdk/teardown_ovsdpdk.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cni/ovsdpdk/teardown_ovsdpdk.sh b/src/cni/ovsdpdk/teardown_ovsdpdk.sh new file mode 100755 index 0000000..857738e --- /dev/null +++ b/src/cni/ovsdpdk/teardown_ovsdpdk.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +netns=$1 +containerid=$2 +pid=$(echo $netns | cut -f3 -d"/") + +sudo ovs-vsctl del-port br-dpdk vhost-user-$pid +sudo ip netns exec $pid link delete dummy-$pid +sudo rm -rf /var/run/cni/netconf-$pid |