summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-03 12:22:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-03 12:22:06 -0700
commitb11162dcb416fac60b1a1f982ca010aa5af48a59 (patch)
treeefc3ba60114a61f0cece44d6c1415490d4955888
parent813a5870d2266857ace4387a75d83074d2de88f6 (diff)
parente51d9e3d161001210785fc6571076935a3b23734 (diff)
downloadvyatta-cfg-system-b11162dcb416fac60b1a1f982ca010aa5af48a59.tar.gz
vyatta-cfg-system-b11162dcb416fac60b1a1f982ca010aa5af48a59.zip
Merge branch 'jenner' of 192.168.100.1:git/vyatta-cfg-system into jenner
-rw-r--r--templates/interfaces/ethernet/node.tag/bond-group/node.def18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def
index f65a9bde..b29901a8 100644
--- a/templates/interfaces/ethernet/node.tag/bond-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def
@@ -1,12 +1,14 @@
type: txt
help: Add this interface to a bonding group
commit:expression: exec \
- "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bonding"
-allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=bonding
-update: eth=$VAR(../@); new=$VAR(@)
- old=`/opt/vyatta/sbin/vyatta-cli-expand-var.pl \$\(/interfaces/ethernet/$ethif/bond-group/@\)`
- if [ -n "$old" ]; then
- sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$old --remove=$ethif
+ "${vyatta_sbindir}/vyatta-interfaces.pl --dev=$VAR(@) --check=bonding"
+
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=bonding
+
+update: OLDG=`${vyatta_sbindir}/vyatta-cli-expand-var.pl \$\(/interfaces/ethernet/$VAR(../@)/bond-group/@\)`
+ if [ -n "$OLDG" ]; then
+ sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$OLDG --remove=$VAR(../@)
fi
- sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$new --add=$ethif
-delete: sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$new --remove=$ethif
+ sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$VAR(@) --add=$VAR(../@)
+
+delete: sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$VAR(@) --remove=$VAR(../@)