diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-16 14:50:20 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-02-16 15:02:23 -0800 |
commit | fac58bc39855de08335a8d7ef479b2a7be8404c0 (patch) | |
tree | 43b7e329f20fbfe6fb7df7ace521f693377bd277 /templates/interfaces | |
parent | ff414766b70e4bd01fb53b12bf00add8082ca4e0 (diff) | |
download | vyatta-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/interfaces')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/vif/node.def | 5 |
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 |