From c264c79e12e84f522d4eda1a14eb714c67355b2f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 23 Oct 2010 17:39:08 -0700 Subject: Fix bond hash policy Turns out link must be down to change hash policy --- templates/interfaces/bonding/node.tag/hash-policy/node.def | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates') 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 -- cgit v1.2.3