minor bugfix on wit-gc... more to come on stale routes
This commit is contained in:
parent
5be0d4b8fc
commit
2e9317222e
|
@ -6,8 +6,8 @@ EMPTYBR=$(for br in /sys/devices/virtual/net/br*; do if [ ! -d $br ]; then conti
|
||||||
for BRIDGE in $EMPTYBR
|
for BRIDGE in $EMPTYBR
|
||||||
do
|
do
|
||||||
echo "removing unused customer bridge/vxlan: $BRIDGE"
|
echo "removing unused customer bridge/vxlan: $BRIDGE"
|
||||||
for uplinkif in ls /sys/devices/virtual/net/$BRIDGE/brif/; do
|
for uplinkif in /sys/devices/virtual/net/$BRIDGE/brif/*; do
|
||||||
ip link del dev $uplinkif
|
ip link del dev ${uplinkif##*/}
|
||||||
done
|
done
|
||||||
ip link set down $BRIDGE
|
ip link set down $BRIDGE
|
||||||
brctl delbr $BRIDGE
|
brctl delbr $BRIDGE
|
||||||
|
|
Loading…
Reference in New Issue