diff options
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bond-group/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def index ee9e283f..4c5c38c3 100644 --- a/templates/interfaces/ethernet/node.tag/bond-group/node.def +++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def @@ -3,5 +3,9 @@ help: Add this interface to a bonding group commit:expression: exec \ "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bonding" allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=bonding -create: sudo sh -c "echo +$VAR(../@) > /sys/class/net/$VAR(@)/bonding/slaves" +create: sudo sh -c "ip link set $VAR(../@) down 2>/dev/null"; + sudo sh -c "echo +$VAR(../@) > /sys/class/net/$VAR(@)/bonding/slaves"; + sudo sh -c "ip link set $VAR(../@) up 2>/dev/null" + delete: sudo sh -c "echo -$VAR(../@) > /sys/class/net/$VAR(@)/bonding/slaves" + |