mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: vm nic charge type support (#23703)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -357,6 +357,8 @@ func ParseNetworkConfig(desc string, idx int) (*compute.NetworkConfig, error) {
|
||||
netConfig.Driver = p
|
||||
} else if strings.HasPrefix(p, "num-queues=") {
|
||||
netConfig.NumQueues, _ = strconv.Atoi(p[len("num-queues="):])
|
||||
} else if strings.HasPrefix(p, "charge-type=") {
|
||||
netConfig.ChargeType = p[len("charge-type="):]
|
||||
} else if regutils.MatchSize(p) {
|
||||
bw, err := fileutils.GetSizeMb(p, 'M', 1000)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user