mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #15394 from seraphico/bugfix/baremetal-mac
fix(baremetal): Physical server installation OS optimization
This commit is contained in:
@@ -2945,7 +2945,7 @@ func (s *SBaremetalServer) reIndexDescNics(term *ssh.Client, desc *deployapi.Gue
|
||||
}
|
||||
reIndexNics := func(nics []*deployapi.Nic) ([]*deployapi.Nic, error) {
|
||||
for idx, nic := range nics {
|
||||
if nic.GetNicType() == api.NIC_TYPE_IPMI {
|
||||
if nic.GetNicType() == api.NIC_TYPE_IPMI || nic.GetIndex() >= 0 {
|
||||
continue
|
||||
}
|
||||
rIdx, rNic := findRemoteNic(nic.GetMac())
|
||||
|
||||
Reference in New Issue
Block a user