mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-07-01 03:24:29 +08:00
fix(region): cloudpods network scheduler
This commit is contained in:
@@ -111,7 +111,7 @@ func IsNetworksAvailable(c core.Candidater, data *api.SchedInfo, req *computeapi
|
||||
ovnNetworks := []*api.CandidateNetwork{}
|
||||
for i := len(networks) - 1; i >= 0; i -= 1 {
|
||||
net := networks[i]
|
||||
if net.Provider == computeapi.CLOUD_PROVIDER_ONECLOUD {
|
||||
if net.Provider == computeapi.CLOUD_PROVIDER_ONECLOUD || net.Provider == computeapi.CLOUD_PROVIDER_CLOUDPODS {
|
||||
networks = append(networks[:i], networks[i+1:]...)
|
||||
ovnNetworks = append(ovnNetworks, net)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user