Explicitly set bonding mode
Change-Id: I441bcee76e4cb73648a1214e203a092cabe0cb7f
diff --git a/trellis/trellislib.py b/trellis/trellislib.py
index 3b3f623..4a3f7a3 100644
--- a/trellis/trellislib.py
+++ b/trellis/trellislib.py
@@ -235,7 +235,7 @@
intf1 = self.intfs[1].name
self.bond0 = "%s-bond0" % self.name
self.cmd('modprobe bonding')
- self.cmd('ip link add %s type bond' % self.bond0)
+ self.cmd('ip link add %s type bond miimon 100 mode balance-xor xmit_hash_policy layer2+3' % self.bond0)
self.cmd('ip link set %s down' % intf0)
self.cmd('ip link set %s down' % intf1)
self.cmd('ip link set %s master %s' % (intf0, self.bond0))
@@ -266,7 +266,7 @@
intf1 = self.intfs[1].name
self.bond0 = "%s-bond0" % self.name
self.cmd('modprobe bonding')
- self.cmd('ip link add %s type bond' % self.bond0)
+ self.cmd('ip link add %s type bond miimon 100 mode balance-xor xmit_hash_policy layer2+3' % self.bond0)
self.cmd('ip link set %s down' % intf0)
self.cmd('ip link set %s down' % intf1)
self.cmd('ip link set %s master %s' % (intf0, self.bond0))