library: fix handling bond for initscripts

initscripts require a non-empty BONDING_OPTS variable to
properly handle bond. Set it.
This commit is contained in:
Thomas Haller 2017-05-31 17:31:06 +02:00
parent fb5ecea19c
commit baca667517

View file

@ -941,6 +941,7 @@ class IfcfgUtil:
elif connection['type'] == 'bond':
ifcfg['TYPE'] = 'Bond'
ifcfg['BONDING_MASTER'] = 'yes'
ifcfg['BONDING_OPTS'] = 'mode=balance-rr'
elif connection['type'] == 'team':
ifcfg['DEVICETYPE'] = 'Team'
elif connection['type'] == 'vlan':