mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #902 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-host-enable-netif-use-guest-network to release/2.4.0
* commit '14b9b2314c88ad743c02cc67b2d26f255bf44eb4': 修正:host启用netif时应该优先使用server_type为baremetal的network
This commit is contained in:
@@ -2984,7 +2984,7 @@ func (self *SHost) EnableNetif(ctx context.Context, userCred mcclient.TokenCrede
|
||||
return fmt.Errorf("Network %s not reacheable on mac %s", network, netif.Mac)
|
||||
}
|
||||
} else {
|
||||
net, err = wire.GetCandidatePrivateNetwork(userCred, false, SERVER_TYPE_GUEST)
|
||||
net, err = wire.GetCandidatePrivateNetwork(userCred, false, SERVER_TYPE_BAREMETAL)
|
||||
if err != nil || net == nil {
|
||||
return fmt.Errorf("No network found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user