summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/ethernet')
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.def5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def
index 610c0e5e..9bf8d47a 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.def
@@ -7,9 +7,8 @@ create: if ! sudo ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vla
then echo "Error creating VLAN device $VAR(../@).$VAR(@)"
exit 1
fi
- if /opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(../@) --isup
- then
- sudo ip link set "$VAR(../@).$VAR(@)" up
+ if [ -z "$VAR(../@/disable)" ]; then
+ sudo ip link set "$VAR(../@).$VAR(@)" up
fi
/opt/vyatta/sbin/vyatta-link-detect "$VAR(../@).$VAR(@)" on
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0