diff options
author | Rafael Fernández López <ereslibre@ereslibre.es> | 2016-11-22 15:24:18 +0100 |
---|---|---|
committer | Rafael Fernández López <ereslibre@ereslibre.es> | 2016-11-22 15:24:18 +0100 |
commit | 582fba8e640c7d22e0bd241bb39b11e6680c58a3 (patch) | |
tree | 28bc7f610b644c5d1802ac4aaaa75e6520b4b453 /libvirt/domain_def.go | |
parent | 5ecf27f1b526da843d3c6577094708061b7f4bd2 (diff) | |
download | terraform-provider-libvirt-582fba8e640c7d22e0bd241bb39b11e6680c58a3.tar terraform-provider-libvirt-582fba8e640c7d22e0bd241bb39b11e6680c58a3.tar.gz |
Specify listen option with none type value. This will avoid slotting a spice connection.
Diffstat (limited to 'libvirt/domain_def.go')
-rw-r--r-- | libvirt/domain_def.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libvirt/domain_def.go b/libvirt/domain_def.go index 7246d943..97485a6b 100644 --- a/libvirt/domain_def.go +++ b/libvirt/domain_def.go @@ -23,9 +23,11 @@ type defDomain struct { Devices struct { Disks []defDisk `xml:"disk"` NetworkInterfaces []defNetworkInterface `xml:"interface"` - Spice struct { - Type string `xml:"type,attr"` - Autoport string `xml:"autoport,attr"` + Graphics struct { + Type string `xml:"type,attr"` + Listen struct { + Type string `xml:"type,attr"` + } `xml:"listen"` } `xml:"graphics"` // QEMU guest agent channel QemuGAChannel struct { @@ -104,8 +106,8 @@ func newDomainDef() defDomain { domainDef.VCpu.Placement = "static" domainDef.VCpu.Amount = 1 - domainDef.Devices.Spice.Type = "spice" - domainDef.Devices.Spice.Autoport = "yes" + domainDef.Devices.Graphics.Type = "spice" + domainDef.Devices.Graphics.Listen.Type = "none" domainDef.Devices.QemuGAChannel.Type = "unix" domainDef.Devices.QemuGAChannel.Source.Mode = "bind" |