summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-23 17:39:08 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-10-25 08:42:50 -0700
commitc264c79e12e84f522d4eda1a14eb714c67355b2f (patch)
treea11c48775da3e7c1068e33adbc3831e57acef39d /templates/interfaces
parent427c67439359021ff5bb77929022748a99650f14 (diff)
downloadvyatta-cfg-system-c264c79e12e84f522d4eda1a14eb714c67355b2f.tar.gz
vyatta-cfg-system-c264c79e12e84f522d4eda1a14eb714c67355b2f.zip
Fix bond hash policy
Turns out link must be down to change hash policy
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/bonding/node.tag/hash-policy/node.def3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.tag/hash-policy/node.def b/templates/interfaces/bonding/node.tag/hash-policy/node.def
index 54c2bb0f..842410d9 100644
--- a/templates/interfaces/bonding/node.tag/hash-policy/node.def
+++ b/templates/interfaces/bonding/node.tag/hash-policy/node.def
@@ -5,8 +5,7 @@ syntax:expression: $VAR(@) in "layer2", "layer2+3", "layer3+4" \
; "hash_policy must be layer2 layer3+4 or layer2+3"
help: Bonding transmit hash policy
-update: sudo sh -c \
- "echo $VAR(@) >/sys/class/net/$VAR(../@)/bonding/xmit_hash_policy"
+update: sudo ${vyatta_sbindir}/vyatta-bonding.pl --dev=$VAR(../@) --hash=$VAR(@)
val_help: layer2; use MAC addresses to generate the hash (802.3ad)
val_help: layer2+3; combine MAC address and IP address to make hash