diff --git a/pkg/compute/models/elasticips.go b/pkg/compute/models/elasticips.go index c195bbca09..ba1d0e18b3 100644 --- a/pkg/compute/models/elasticips.go +++ b/pkg/compute/models/elasticips.go @@ -509,6 +509,7 @@ func (manager *SElasticipManager) newFromCloudEip(ctx context.Context, userCred eip.ManagerId = provider.Id eip.CloudregionId = region.Id eip.ChargeType = extEip.GetInternetChargeType() + eip.Bandwidth = extEip.GetBandwidth() if networkId := extEip.GetINetworkId(); len(networkId) > 0 { network, err := db.FetchByExternalIdAndManagerId(NetworkManager, networkId, func(q *sqlchemy.SQuery) *sqlchemy.SQuery { wire := WireManager.Query().SubQuery() diff --git a/pkg/mcclient/options/servers.go b/pkg/mcclient/options/servers.go index a266dc8024..0c63196780 100644 --- a/pkg/mcclient/options/servers.go +++ b/pkg/mcclient/options/servers.go @@ -474,6 +474,8 @@ func (opts *ServerCreateOptionalOptions) OptionalParams() (*computeapi.ServerCre EipBw: opts.EipBw, EipBgpType: opts.EipBgpType, EipChargeType: opts.EipChargeType, + PublicIpBw: opts.PublicIpBw, + PublicIpChargeType: opts.PublicIpChargeType, Eip: opts.Eip, EnableCloudInit: opts.EnableCloudInit, OsType: opts.OsType, diff --git a/pkg/multicloud/qcloud/instance.go b/pkg/multicloud/qcloud/instance.go index 79dae7fa7e..e88af28717 100644 --- a/pkg/multicloud/qcloud/instance.go +++ b/pkg/multicloud/qcloud/instance.go @@ -881,6 +881,7 @@ func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error) { eip.AddressName = address eip.AddressType = EIP_TYPE_WANIP eip.AddressStatus = EIP_STATUS_BIND + eip.Bandwidth = self.InternetAccessible.InternetMaxBandwidthOut return &eip, nil } return nil, nil