Skip to content

Commit

Permalink
T900: handle the case when a bridge and tunnel bridge group are remov…
Browse files Browse the repository at this point in the history
…ed in the same commit.
  • Loading branch information
dmbaturin committed Oct 14, 2018
1 parent 12c9b58 commit ad89b9a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ create:
echo interfaces tunnel $VAR(../../../../@) bridge-group bridge $VAR(@): tunnel encapsulation type must be gre-bridge
exit 1
fi
delete: sudo brctl delif $VAR(@) $VAR(../../../../@)
delete: if [ -d /sys/class/net/$VAR(@) ]; then
sudo brctl delif $VAR(@) $VAR(../../../../@)
else
exit 0
fi

0 comments on commit ad89b9a

Please sign in to comment.