Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #872 from robhoes/ca90457-tampa

  • Loading branch information...
commit a0e1f3a88a099a94a49bd6e153032ccfced0904b 2 parents 9f8a816 + 07fe89d
xen-git authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 ocaml/xapi/nm.ml
View
8 ocaml/xapi/nm.ml
@@ -133,6 +133,11 @@ 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";
@@ -140,8 +145,7 @@ let create_bond ~__context bond mtu =
"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)
Please sign in to comment.
Something went wrong with that request. Please try again.