mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
Merge pull request #8248 from ioito/hotfix/qx-qcloud-instance-bandwidth
fix: qcloud instance with max bandwidth
This commit is contained in:
@@ -508,7 +508,13 @@ func (self *SRegion) CreateInstance(name string, imageId string, instanceType st
|
||||
params["InstanceName"] = name
|
||||
params["HostName"] = name
|
||||
|
||||
params["InternetAccessible.InternetMaxBandwidthOut"] = "1"
|
||||
bandwidth := 100
|
||||
if bc != nil {
|
||||
bandwidth = 200
|
||||
}
|
||||
|
||||
params["InternetAccessible.InternetChargeType"] = "TRAFFIC_POSTPAID_BY_HOUR"
|
||||
params["InternetAccessible.InternetMaxBandwidthOut"] = fmt.Sprintf("%d", bandwidth)
|
||||
params["InternetAccessible.PublicIpAssigned"] = "FALSE"
|
||||
if len(keypair) > 0 {
|
||||
params["LoginSettings.KeyIds.0"] = keypair
|
||||
|
||||
Reference in New Issue
Block a user