This commit adds bond_mode configuration to Interface Reconfigure
so that it may be changed using standard XenServer commands.
Signed-off-by: Ethan Jackson <ethan@nicira.com>
argv += ['bond_%s=%d' % (name, value)]
except ValueError:
log("bridge %s has invalid %s '%s'" % (bridge, name, value))
+ elif name == "mode":
+
+ if val in ['balance-slb', 'active-backup']:
+ argv += ['bond_%s=%s' % (name, val)]
+ else:
+ log("bridge %s has invalid %s '%s'" % (bridge, name, val))
else:
# Pass other bond options into other_config.
argv += ["other-config:%s=%s" % (vsctl_escape("bond-%s" % name),