diff options
| author | Jeff Carr <[email protected]> | 2024-10-23 18:06:46 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-23 18:06:46 -0500 |
| commit | 07da0fa0ee3291d04daf78a91535596d18e1d8f7 (patch) | |
| tree | 87e9343b3267cf400a6cc8d56157d3438eac2d44 /xml.go | |
| parent | a1593b0b88ec416e9dd2b3f62fcfebdc7957c5db (diff) | |
keep processing my libvirt xml files
Signed-off-by: Jeff Carr <[email protected]>
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 { |
