Skip to content

Commit

Permalink
T898: use the new script for checking if a bridge still has active me…
Browse files Browse the repository at this point in the history
…mbers.
  • Loading branch information
dmbaturin committed Oct 14, 2018
1 parent a2a1fa5 commit 12c9b58
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/interfaces/bridge/node.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ create: /sbin/brctl addbr $VAR(@)
fi
sudo ip link set $VAR(@) up

delete: if ! /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
--no-interfaces-assigned \
--bridge-interface="$VAR(@)"; then \
exit 1
delete: if ! ${vyos_conf_scripts_dir}/bridge_has_members.py $VAR(@); then
exit 1;
fi
sudo ip link set $VAR(@) down;
sudo /sbin/brctl delbr $VAR(@);

0 comments on commit 12c9b58

Please sign in to comment.