Browse files

Merge pull request #872 from robhoes/ca90457-tampa

  • Loading branch information...
2 parents 9f8a816 + 07fe89d commit a0e1f3a88a099a94a49bd6e153032ccfced0904b xen-git committed Oct 18, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 ocaml/xapi/nm.ml
View
8 ocaml/xapi/nm.ml
@@ -133,15 +133,19 @@ let create_bond ~__context bond mtu =
else
""
in
+ let rebalance_interval =
+ if mode = `lacp
+ then []
+ else ["rebalance-interval", "1800000"]
+ in
let props = [
"mode", Record_util.bond_mode_to_string mode;
"miimon", "100";
"downdelay", "200";
"updelay", "31000";
"use_carrier", "1";
"hashing-algorithm", hashing_algorithm;
- "rebalance-interval", "1800000";
- ] in
+ ] @ rebalance_interval in
let overrides = List.filter_map (fun (k, v) ->
if String.startswith "bond-" k then
Some ((String.sub_to_end k 5), v)

0 comments on commit a0e1f3a

Please sign in to comment.