summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 10:36:57 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-19 10:36:57 -0700
commit634d7bdda75a7dcfec400be705be7b41179cd6a0 (patch)
treeb441d7dfa2879dc922fa2f07f52424f69eacc7f9 /templates/interfaces
parent49170f6676d2779a38bbaff61ba27f1ccaa5b444 (diff)
downloadvyatta-cfg-quagga-634d7bdda75a7dcfec400be705be7b41179cd6a0.tar.gz
vyatta-cfg-quagga-634d7bdda75a7dcfec400be705be7b41179cd6a0.zip
bonding vif val_help
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/vif/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.tag/vif/node.def b/templates/interfaces/bonding/node.tag/vif/node.def
index a9cc2bfa..b9b544a2 100644
--- a/templates/interfaces/bonding/node.tag/vif/node.def
+++ b/templates/interfaces/bonding/node.tag/vif/node.def
@@ -3,6 +3,8 @@ priority: 320
type: u32
help: Virtual Local Area Network (VLAN) ID
syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 and 4094"
+val_help:<0-4094>:VLAN ID
+
create: read -a SLAVES </sys/class/net/$VAR(../@)/bonding/slaves
if [ ${#SLAVES[*]} -eq 0 ]; then
echo "Must configure slave devices for bond interface $VAR(../@) before adding vif"
@@ -12,5 +14,3 @@ create: read -a SLAVES </sys/class/net/$VAR(../@)/bonding/slaves
ip link set "$VAR(../@).$VAR(@)" up
sudo sh -c "/opt/vyatta/sbin/vyatta-link-detect $VAR(../@).$VAR(@) on"
delete: ip link delete dev "$VAR(../@).$VAR(@)" type vlan id $VAR(@)
-comp_help: possible completions:
- <0-4094> Set VLAN ID