summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMark O'Brien <mark@vyatta.com>2009-06-26 14:23:39 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-07-17 14:56:05 -0700
commit9c83fa0ecfd1bd40f44a1b3899a29c4cc941268f (patch)
treeeaa3bad2a3ce34a98ea8909780bafdc09c62cc8f /templates
parent519a2a9b7045e55b3da0080a15d027a5de79c613 (diff)
downloadvyatta-cfg-quagga-9c83fa0ecfd1bd40f44a1b3899a29c4cc941268f.tar.gz
vyatta-cfg-quagga-9c83fa0ecfd1bd40f44a1b3899a29c4cc941268f.zip
Added link detect to ethernet bonded vlan interfaces.
(bug 4656) (cherry picked from commit a054f90f492653c34d8c1c6443b1b132bc9fbc22)
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.def b/templates/interfaces/bonding/node.tag/vif/node.def
index c3087022..13a35b12 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.def
@@ -10,6 +10,7 @@ create: read flags < /sys/class/net/$VAR(../@)/flags
fi
sudo ip link add link $VAR(../@) name "$VAR(../@).$VAR(@)" type vlan id $VAR(@) || exit 1
sudo ip link set "$VAR(../@).$VAR(@)" up
+ sudo sh -c "/opt/vyatta/sbin/vyatta-link-detect $VAR(../@).$VAR(@) on"
delete: sudo ip link delete dev "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
comp_help: possible completions:
<0-4094> Set VLAN ID