X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=xenserver%2Fopt_xensource_libexec_InterfaceReconfigureVswitch.py;fp=xenserver%2Fopt_xensource_libexec_InterfaceReconfigureVswitch.py;h=d70baa493c94f43efbaeee0cf6af05d02e7206e6;hb=aa98d0cd418315a9965b7234c9e16013ba8c2616;hp=c352594ac86c537b7781a830cf0158335f8c3286;hpb=27dcaa1ac8a4ac072ca7590c409c93c6ba9376ad;p=sliver-openvswitch.git diff --git a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py index c352594ac..d70baa493 100644 --- a/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py +++ b/xenserver/opt_xensource_libexec_InterfaceReconfigureVswitch.py @@ -171,6 +171,12 @@ def datapath_configure_bond(pif,slaves): 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),