summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-16 14:50:20 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-16 15:02:23 -0800
commitfac58bc39855de08335a8d7ef479b2a7be8404c0 (patch)
tree43b7e329f20fbfe6fb7df7ace521f693377bd277 /templates
parentff414766b70e4bd01fb53b12bf00add8082ca4e0 (diff)
downloadvyatta-cfg-quagga-fac58bc39855de08335a8d7ef479b2a7be8404c0.tar.gz
vyatta-cfg-quagga-fac58bc39855de08335a8d7ef479b2a7be8404c0.zip
Speed up VIF creation
The overhead of compiling perl script repeatedly slows down VIF creation
Diffstat (limited to 'templates')
-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