mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
fix(hostman): config BONDING_OPTS for ifcfg-bondx (#13223)
This commit is contained in:
@@ -1141,6 +1141,8 @@ func (r *sRedhatLikeRootFs) deployNetworkingScripts(rootFs IDiskPartition, nics
|
||||
cmds.WriteString(nicDesc.TeamingMaster.Name)
|
||||
cmds.WriteString("\n")
|
||||
cmds.WriteString("SLAVE=yes\n")
|
||||
} else if len(nicDesc.TeamingSlaves) != 0 {
|
||||
cmds.WriteString(`BONDING_OPTS="mode=4 miimon=100"\n`)
|
||||
} else if nicDesc.Virtual {
|
||||
cmds.WriteString("BOOTPROTO=none\n")
|
||||
cmds.WriteString("NETMASK=255.255.255.255\n")
|
||||
|
||||
Reference in New Issue
Block a user