diff options
Diffstat (limited to 'xml.go')
| -rw-r--r-- | xml.go | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -444,6 +444,7 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) { normalSpice = false continue } + // this is all moved to updateDroplet() // this is a spice definition, just ignore it // because port mappings and network access will be handled // somewhere else someday @@ -455,7 +456,7 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) { // should ignore either way } else { // print out, but ignore the port number - fmt.Printf("Spice Port = %d\n", s.Port) + // fmt.Printf("Spice Port = %d\n", s.Port) } } } @@ -514,13 +515,26 @@ func dumpNonStandardXML(domcfg *libvirtxml.Domain) { var normalVideo bool = true if domcfg.Devices.Videos != nil { for _, v := range domcfg.Devices.Videos { - if (v.Model.Type == "qxl") && (v.Model.VRam == 65536) { + switch v.Model.Type { + case "qxl": + if v.Model.VRam == 65536 { // standard qxl video } else { fmt.Printf("? Video: %+v\n", v) fmt.Printf("? Video Model: %+v\n", v.Model) normalVideo = false } + case "virtio": + // this should always be standard + //fmt.Printf("? Video: %+v\n", v) + //fmt.Printf("? Video Model: %+v\n", v.Model) + //fmt.Printf("? Video Address: %+v\n", v.Address) + //fmt.Printf("? Video PCI: %+v\n", v.Address.PCI) + default: + fmt.Printf("? Video: %+v\n", v) + fmt.Printf("? Video Model: %+v\n", v.Model) + normalVideo = false + } } } if normalVideo { |
