summaryrefslogtreecommitdiffstats
path: root/src/cni/ovsdpdk/teardown_ovsdpdk.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-11-23 12:58:05 -0500
committerGuo Ruijing <ruijing.guo@intel.com>2017-11-23 16:33:53 -0500
commita8388222d5d1f11be506e9e79f5e2476c447177e (patch)
tree59aebeb523399bd3c3132391ad85c3153b779448 /src/cni/ovsdpdk/teardown_ovsdpdk.sh
parentec94abf0ea9154af2f0dbce13e12df775b72bbac (diff)
build ovsdpdk cni during deployment
Change-Id: I1c3d4b44bab0d75fae93f7fabce7bcfdcc3b9f35 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/cni/ovsdpdk/teardown_ovsdpdk.sh')
-rwxr-xr-xsrc/cni/ovsdpdk/teardown_ovsdpdk.sh9
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