mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #13578 from zexi/kvm-net-addr
fix(host): remove addr of qemu nic option
This commit is contained in:
@@ -385,10 +385,13 @@ func GetDiskDeviceModel(driver string) string {
|
||||
func generateNicOptions(drvOpt QemuOptions, input *GenerateStartOptionsInput) ([]string, error) {
|
||||
opts := []string{}
|
||||
nics := input.Nics
|
||||
withAddr := true
|
||||
if drvOpt.IsArm() {
|
||||
withAddr = false
|
||||
}
|
||||
/*
|
||||
* withAddr := true
|
||||
* if drvOpt.IsArm() {
|
||||
* withAddr = false
|
||||
* }
|
||||
*/
|
||||
withAddr := false
|
||||
for idx := range nics {
|
||||
netDevOpt, err := getNicNetdevOption(drvOpt, nics[idx], input.IsKVMSupport)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user