libvirt-go-xml.git
4 days agoadd Timer support in DomainClock master
Crazykev [Mon, 18 Sep 2017 10:09:53 +0000]
add Timer support in DomainClock

Signed-off-by: Crazykev <crazykev@harmonycloud.cn>

4 days agoadd Numa support to DomainCPU
Crazykev [Mon, 18 Sep 2017 09:36:06 +0000]
add Numa support to DomainCPU

Signed-off-by: Crazykev <crazykev@harmonycloud.cn>

4 days agoAdd support for domain hostdev and test code
zhenwei.pi [Fri, 15 Sep 2017 06:12:44 +0000]
Add support for domain hostdev and test code

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

9 days agoAdding go 1.8 and 1.9 to travis tests
Dean Smith [Wed, 13 Sep 2017 12:57:46 +0000]
Adding go 1.8 and 1.9 to travis tests

9 days agoAdd support for hex values in DomainAddress struct
Anton Kryukov [Wed, 13 Sep 2017 12:57:45 +0000]
Add support for hex values in DomainAddress struct

Add support for hex values in DomainAddress struct
Tests fixed for HexUint
>From PR#13 https://github.com/libvirt/libvirt-go-xml/pull/13
on github by Emreu

@deasmi submitting via mail

2 months agoAdd support for DNS in network
Thomas Hipp [Wed, 12 Jul 2017 13:28:13 +0000]
Add support for DNS in network

Add support for DNS in network, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

2 months agoAdd support for NAT in network forward
Thomas Hipp [Wed, 12 Jul 2017 11:26:03 +0000]
Add support for NAT in network forward

Add support for NAT in network forward, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

2 months agoadded possibility to set bandwith parameters to zero
Daniel Kucera [Mon, 26 Jun 2017 13:43:01 +0000]
added possibility to set bandwith parameters to zero

allows to unset limits - otherwise, if value is not
defined in xml, value is not modified when using
DOMAIN_AFFECT_LIVE

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

2 months agoAdd support for domain clock and test code
zhenwei.pi [Mon, 10 Jul 2017 03:35:23 +0000]
Add support for domain clock and test code

Signed-off-by: zhenwei.pi <zhenwei.pi@youruncloud.com>

2 months agoSupport WWN tag in disks
Thomas Hipp [Mon, 10 Jul 2017 14:12:06 +0000]
Support WWN tag in disks

Support the WWN (World Wide Name) tag in disks, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

2 months agoAdd support for QEMU
Thomas Hipp [Mon, 10 Jul 2017 10:28:23 +0000]
Add support for QEMU

Add support for QEMU, and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

2 months agoAdd support for device RNG
Thomas Hipp [Tue, 4 Jul 2017 08:16:07 +0000]
Add support for device RNG

Add support for device RNG (random number generator), and add test code.

Signed-off-by: Thomas Hipp <thipp@suse.de>

2 months agoadded interface bandwidth parameters
Daniel Kucera [Mon, 26 Jun 2017 12:01:13 +0000]
added interface bandwidth parameters

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

2 months agoadd append attr for chardev
zhenwei.pi [Mon, 26 Jun 2017 02:09:23 +0000]
add append attr for chardev

2 months agosupport virtualport for interface and add test code
ZhenweiPi [Mon, 26 Jun 2017 01:08:03 +0000]
support virtualport for interface and add test code

2 months agoadded xmlname to DomainGraphic to marshal correctly
Daniel Kucera [Thu, 22 Jun 2017 14:18:38 +0000]
added xmlname to DomainGraphic to marshal correctly

The <graphics> element can also be used as a document root
when dynamically updating graphics config in libvirt.

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

3 months agoadded discard attr to domain disk driver
Daniel Kucera [Thu, 22 Jun 2017 13:05:43 +0000]
added discard attr to domain disk driver

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

3 months agoadded domain disk iotune element
Daniel Kucera [Thu, 22 Jun 2017 12:29:04 +0000]
added domain disk iotune element

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

3 months agoadded dev attribute to interface source
Daniel Kucera [Thu, 22 Jun 2017 11:57:06 +0000]
added dev attribute to interface source

Signed-off-by: Daniel Kucera <kucera@apptocloud.com>

3 months agoGeneralize DomainInterfaceBoot to DomainDeviceBoot and support disks
zhenwei.pi [Tue, 6 Jun 2017 05:51:30 +0000]
Generalize DomainInterfaceBoot to DomainDeviceBoot and support disks

Allow disks to have a boot order index specified by renaming
the DomainInterfaceBoot struct to DomainDeviceBoot.

3 months agoReorder Domain field to match libvirt XML order
Daniel P. Berrange [Wed, 7 Jun 2017 10:46:39 +0000]
Reorder Domain field to match libvirt XML order

Reoder the Domain object fields so that the elements in the
generated XML match the order in which libvirt generates
XML. Semantically this makes no difference, but it makes it
easier to compare XML documents if ordering is consistent.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoadd emulator supported
zhenwei.pi [Sat, 3 Jun 2017 01:30:00 +0000]
add emulator supported

3 months agoAdd ability to marshal/unmarshal individual devices
Daniel P. Berrange [Mon, 5 Jun 2017 13:02:21 +0000]
Add ability to marshal/unmarshal individual devices

The structs for individual device types need to be usable both as part
of the domain device list, and as top level XML documents on their own.
The latter is needed for device hotplug APIs. Thus all the devices must
have a XMLName tag present, and provide Marshal/Unmarshal methods. In
doing this, define a "Document" interface which declares the Marhsal/
Unmarhsal method contracts.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd top level elements for console/serial/channel
Daniel P. Berrange [Mon, 5 Jun 2017 12:46:08 +0000]
Add top level elements for console/serial/channel

We shouldn't use the same top level DomainChardev for console/serial/channel
devices as they should have separate target element schemas.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd support for domain input address
zhenwei.pi [Thu, 1 Jun 2017 09:49:59 +0000]
Add support for domain input address

3 months agoAdd support for device sound
zhenwei.pi [Thu, 1 Jun 2017 02:58:06 +0000]
Add support for device sound

3 months agoAdd support for domain chardev target port
Daniel P. Berrange [Wed, 31 May 2017 13:59:42 +0000]
Add support for domain chardev target port

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd support for memory balloon object
Daniel P. Berrange [Wed, 31 May 2017 13:56:47 +0000]
Add support for memory balloon object

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd address element to disk, video, filesystem and iface objects
Daniel P. Berrange [Wed, 31 May 2017 13:43:37 +0000]
Add address element to disk, video, filesystem and iface objects

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd support for domain disk error policy, readonly & shareable attrs
Daniel P. Berrange [Wed, 31 May 2017 13:04:01 +0000]
Add support for domain disk error policy, readonly & shareable attrs

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoFix mistake in location of disk cache/io attributes
Daniel P. Berrange [Wed, 31 May 2017 12:58:28 +0000]
Fix mistake in location of disk cache/io attributes

The disk cache/io attributes are part of the <driver> not the
top level <disk> element

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoExpand domain controller to support model & address info
zhenwei.pi [Wed, 31 May 2017 12:50:51 +0000]
Expand domain controller to support model & address info

3 months agoAdd support for disk cache & io attributes
zhenwei.pi [Wed, 31 May 2017 12:50:21 +0000]
Add support for disk cache & io attributes

3 months agoAdd support for domain disk serial attribute
Daniel P. Berrange [Wed, 31 May 2017 12:45:31 +0000]
Add support for domain disk serial attribute

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoAdd extra domain video device attributes
Daniel P. Berrange [Wed, 31 May 2017 12:43:00 +0000]
Add extra domain video device attributes

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

3 months agoFix various domain attributes to use uint instead of int
Daniel P. Berrange [Wed, 31 May 2017 12:38:44 +0000]
Fix various domain attributes to use uint instead of int

Change all the domain attributes which do not accept negative
numbers to use 'uint' instead of 'int'

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

4 months agoadd support for domain features
Ryan Goodfellow [Sat, 22 Apr 2017 21:53:48 +0000]
add support for domain features

This commit adds support for domain features. It does so by introducing
a new family of types DomainFeature*. The aggregate type
DomainFeatureList has been added to the Domain type to plumb in the new
type family. Testing has also been added in domain_test.go

4 months agoAdd Pool and Volume fields to DomainDiskSource
Ian Campbell [Fri, 28 Apr 2017 13:32:01 +0000]
Add Pool and Volume fields to DomainDiskSource

This allows one to construct disks/cdroms from volumes such as:

<disk type='volume' device='cdrom'>
<driver name='qemu' type='raw'/>
<source pool='default' volume='myvolume'/>
<backingStore/>
<target dev='sdc' bus='sata'/>
<readonly/>
<alias name='sata0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>

via:

&libvirtxml.DomainDisk{
Type:   "volume",
Device: "cdrom",
Source: &libvirtxml.DomainDiskSource{
Pool:   "default",
Volume: "myvolume",
},
Target: &libvirtxml.DomainDiskTarget{
Dev: "sdc",
Bus: "sata",
},
}

Signed-off-by: Ian Campbell <ian.campbell@docker.com>

4 months agoSupport for filesystem devices
Ryan Goodfellow [Tue, 18 Apr 2017 22:01:18 +0000]
Support for filesystem devices

This commit adds filesystem device support. A new family of types
DomainFilesystem* are introduced and plumbed into the DomainDeviceList
struct.

Testing has also been included.

6 months agoAdd some omitempty annotations for disk config
Daniel P. Berrange [Thu, 23 Feb 2017 16:21:28 +0000]
Add some omitempty annotations for disk config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agodomain: devices: Add channels structs
James Shubin [Tue, 31 Jan 2017 23:06:30 +0000]
domain: devices: Add channels structs

This adds the channels structs so that qemu guest agent state and other
related fields can be queried.

7 months agoAdd support for disk auth config
Daniel P. Berrange [Wed, 1 Feb 2017 17:01:14 +0000]
Add support for disk auth config

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoExpand domain disk source definition to cover network disks
Daniel P. Berrange [Wed, 1 Feb 2017 15:30:35 +0000]
Expand domain disk source definition to cover network disks

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

7 months agoInitial implemention for Network mappings
Lian Duan [Sun, 29 Jan 2017 16:40:46 +0000]
Initial implemention for Network mappings

7 months agoExtend interface device definitions
Vincent Bernat [Thu, 26 Jan 2017 18:30:55 +0000]
Extend interface device definitions

This is still incomplete but most of the useful things are
here. Examples are taken from libvirt samples.

7 months agoAdd DomainCPU mappings
Lian Duan [Fri, 27 Jan 2017 21:57:56 +0000]
Add DomainCPU mappings

7 months agoAdd mapping for <vcpu></vcpu> for domain
Lian Duan [Fri, 27 Jan 2017 19:14:14 +0000]
Add mapping for <vcpu></vcpu> for domain

7 months agoAdd omitempty for DomainOSType's Arch and Machine
Lian Duan [Fri, 27 Jan 2017 20:04:08 +0000]
Add omitempty for DomainOSType's Arch and Machine

7 months agoFix mapping for DomainInterfaceMac & DomainInterfaceModel
Lian Duan [Fri, 27 Jan 2017 18:12:22 +0000]
Fix mapping for DomainInterfaceMac & DomainInterfaceModel

8 months agoMake NUMA memory sizes uint64
Daniel P. Berrange [Fri, 20 Jan 2017 13:19:51 +0000]
Make NUMA memory sizes uint64

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoThere is only a single <memory> element per NUMA node
Daniel P. Berrange [Fri, 20 Jan 2017 13:16:42 +0000]
There is only a single <memory> element per NUMA node

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdd resource partition parsing
Daniel P. Berrange [Thu, 19 Jan 2017 13:14:37 +0000]
Add resource partition parsing

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoChange UUID into string, rather than pointer to string
Daniel P. Berrange [Mon, 16 Jan 2017 14:19:17 +0000]
Change UUID into string, rather than pointer to string

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdapt tests for previous changes
Daniel P. Berrange [Mon, 16 Jan 2017 14:18:15 +0000]
Adapt tests for previous changes

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoMake disk driver source optional
Daniel P. Berrange [Mon, 16 Jan 2017 14:18:04 +0000]
Make disk driver source optional

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoMake FileSource field optional
Daniel P. Berrange [Mon, 16 Jan 2017 14:15:20 +0000]
Make FileSource field optional

There will be other types of disk source in future, so we must
use a pointer to the FileSource to ensure it is optional.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoFix memory value to be an int instead of string
Daniel P. Berrange [Mon, 16 Jan 2017 13:22:40 +0000]
Fix memory value to be an int instead of string

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdd support for domain maximum memory
Daniel P. Berrange [Mon, 16 Jan 2017 13:21:48 +0000]
Add support for domain maximum memory

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdded domain snapshot schema
Alexey Slaykovsky [Thu, 12 Jan 2017 09:44:08 +0000]
Added domain snapshot schema

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>

8 months agoUpdate docs to reflect marshal/unmarshal methods
Daniel P. Berrange [Wed, 11 Jan 2017 17:49:41 +0000]
Update docs to reflect marshal/unmarshal methods

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdd helper methods for marshalling objects to/from XML
Daniel P. Berrange [Wed, 11 Jan 2017 17:31:00 +0000]
Add helper methods for marshalling objects to/from XML

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdded Storage Pool and Storage Volume XML schemes.
Alexey Slaykovsky [Mon, 9 Jan 2017 07:15:21 +0000]
Added Storage Pool and Storage Volume XML schemes.

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

8 months agoAdded domain OS struct and tests
Alexey Slaykovsky [Thu, 5 Jan 2017 13:59:44 +0000]
Added domain OS struct and tests

Signed-off-by: Alexey Slaykovsky <aslaikov@redhat.com>

8 months agoAdd package doc file
Daniel P. Berrange [Thu, 5 Jan 2017 12:48:05 +0000]
Add package doc file

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoAdd parsing of <secret> object schema
Daniel P. Berrange [Wed, 21 Dec 2016 13:39:12 +0000]
Add parsing of <secret> object schema

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoFinish <graphics> XML parsing
Daniel P. Berrange [Wed, 21 Dec 2016 11:10:50 +0000]
Finish <graphics> XML parsing

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoFix formatting of git links in README.md
Daniel P. Berrange [Fri, 16 Dec 2016 11:33:19 +0000]
Fix formatting of git links in README.md

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>

9 months agoInitial import of code
Daniel P. Berrange [Fri, 16 Dec 2016 11:23:51 +0000]
Initial import of code

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>