diff options
author | 2017-08-01 14:44:21 -0700 | |
---|---|---|
committer | 2017-08-01 14:46:09 -0700 | |
commit | f2b811df691ded8deb1bf4c1a54ac65d886d3a18 (patch) | |
tree | 8cfb1a5e8f9c97de206a530dabfcb1bf31074248 /src/cni/ovsdpdk/teardown_ovsdpdk.sh | |
parent | dc766e69c0c08c55b6df2384bbcfd1e712f03160 (diff) |
add ovsdpdk cni
Change-Id: Id3eba33d3b33deee815596c0a56bbe77954e2214
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
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 |