From 3d55d4142307d29e513e4ecadf36604b32d4677a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 7 Jul 2009 14:25:06 -0700 Subject: Allow disable of bonding interface with VIF bug 4694 No reason to block disabling bonding interface with VIF Kernel handles it fine. (cherry picked from commit 3c76bd6b12dd211075d1dd689a2772c534ec7abe) --- templates/interfaces/bonding/node.tag/disable/node.def | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/bonding/node.tag/disable/node.def b/templates/interfaces/bonding/node.tag/disable/node.def index 3d3ffef9..ad033365 100644 --- a/templates/interfaces/bonding/node.tag/disable/node.def +++ b/templates/interfaces/bonding/node.tag/disable/node.def @@ -1,10 +1,5 @@ help: Set interface disabled -create: vif=`/opt/vyatta/sbin/vyatta-interfaces.pl --vif=$VAR(../@) --show=all` - if [ ! -z "$vif" ]; then - echo "Can not disable interface " $VAR(../@) " with vif:" $vif - exit 1 - fi - /etc/netplug/linkdown.d/dhclient $VAR(../@) +create: /etc/netplug/linkdown.d/dhclient $VAR(../@) if ! sudo ip link set $VAR(../@) down 2>/dev/null; then echo "Error disabling dev $VAR(../@)" /etc/netplug/linkup.d/dhclient $VAR(../@) -- cgit v1.2.3