Fix veth cleanup on Ubuntu 15.10

Cope with the @ characters that have started appearing in veth names as
of Ubuntu 15.10.
This commit is contained in:
Adam Harrison committed 2016-02-18 12:11:48 +00:00
1 parent 4bd18737b7
commit 5dd8584fb6
1 file changed
+1 -1
+1 -1
View File
@@ -694,7 +694,7 @@ destroy_bridge() {
done
# Remove any lingering bridged fastdp, pcap and attach-bridge veths
for VETH in $(ip -o link show | grep -o v${CONTAINER_IFNAME}[^:]*) ; do
for VETH in $(ip -o link show | grep -o v${CONTAINER_IFNAME}[^:@]*) ; do
ip link del $VETH >/dev/null 2>&1 || true
done