mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 06:45:17 +00:00
xenserver: Add missing argument for fake-iface config
The interface-reconfigure script may add the 'fake-iface' configuration option to the ovs-vswitchd.conf, but neglects to mention the interface. This resulted in a "bonding.%s.fake-iface=true" line, which is clearly wrong. This commit corrects that behavior.
This commit is contained in:
@@ -843,7 +843,7 @@ def configure_bond(pif):
|
|||||||
argv = ['--del-match=bonding.%s.[!0-9]*' % interface]
|
argv = ['--del-match=bonding.%s.[!0-9]*' % interface]
|
||||||
argv += ["--add=bonding.%s.slave=%s" % (interface, slave)
|
argv += ["--add=bonding.%s.slave=%s" % (interface, slave)
|
||||||
for slave in physdev_names]
|
for slave in physdev_names]
|
||||||
argv += ['--add=bonding.%s.fake-iface=true']
|
argv += ['--add=bonding.%s.fake-iface=true' % interface]
|
||||||
|
|
||||||
if pifrec['MAC'] != "":
|
if pifrec['MAC'] != "":
|
||||||
argv += ['--add=port.%s.mac=%s' % (interface, pifrec['MAC'])]
|
argv += ['--add=port.%s.mac=%s' % (interface, pifrec['MAC'])]
|
||||||
|
Reference in New Issue
Block a user