minor bugfix on wit-gc... more to come on stale routes

This commit is contained in:
toby 2019-03-11 07:19:09 +00:00
parent 5be0d4b8fc
commit 2e9317222e
1 changed files with 2 additions and 2 deletions

View File

@ -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