mirror of
https://github.com/linux-system-roles/network.git
synced 2026-08-04 08:43:20 +00:00
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:
parent
fb5ecea19c
commit
baca667517
1 changed files with 1 additions and 0 deletions
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue