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
|
||||
do
|
||||
echo "removing unused customer bridge/vxlan: $BRIDGE"
|
||||
for uplinkif in ls /sys/devices/virtual/net/$BRIDGE/brif/; do
|
||||
ip link del dev $uplinkif
|
||||
for uplinkif in /sys/devices/virtual/net/$BRIDGE/brif/*; do
|
||||
ip link del dev ${uplinkif##*/}
|
||||
done
|
||||
ip link set down $BRIDGE
|
||||
brctl delbr $BRIDGE
|
||||
|
|
Loading…
Reference in New Issue