summaryrefslogtreecommitdiffstats
path: root/src/cni/ovsdpdk/teardown_ovsdpdk.sh
blob: 857738e7181e0ce4a9d0538118b0dfe3b24864df (plain)
1
2
3
4
5
6
7
8
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