libvirt: Add test module for virsh net-destroy

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh net-dumpxml.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh update-device.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.qemu_vm: Make boot and bootindex to work correctly

This patch will fix wrong boot setup when set 'boot = on' in cfg files
for cases need more than one disk.

When 'boot = on' set in cfg files, will first check if qemu supports
bootindex. If it does, we will use bootindex which start from 0 and
will increase 1 for each image. You can also set the bootindex in cfg
files. If it doesn't, we will setup the first image to 'boot=on', other
images will set to 'boot=off' which is the limit of boot option in qemu.

Also remove the duplicate boot setup line in add_drive()

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virt-libvirt: Standardize VMXML device package module handling

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Base classes for VMXML devices

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add VMXML serial device base class

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add xml validation method and property

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add device manipulation to vm_xml module

Signed-off-by: Chris Evich <cevich@redhat.com>
Fix: slots should add a special list, not a string.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Fix: find_module should be given a list include pathes.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add Serial class for libvirt_xml/devices/serial module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Change the implement of get_devices in vm_xml module.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Change libvirt_xml API (virsh parameter order)

Signed-off-by: Chris Evich <cevich@redhat.com>
virt: Improve vm_xml device support + unittests

* Add ability to compare LibvirtXMLBase derived instances
* Fixed indentation problems in libvirt_xml.devices.librarian
* Added ability to create devices from ElementTree elements
* Added simplistic input element XML validation
* Simplified Serial device class hierarchy
* Added new unittests for serial devices
* Added new unittests for vm_xml device enumeration / comparison
* Added stub modules for all devices classes
* Added address pseudo-device support
* Added unittests to verify no class steps on address-class properties
* Added unittest tearDown() to cleanup from any library module
  inter-test changes
* Added basic address pseudo-device unittest
* Added simplified address pseudo-device to take
  simple dictionary of attributes

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Accessors module cleanups

* Fixed a docstring
* Improved error reporting for missing accessor generator parameters
* Removed redundant dargs & type_checks from base class

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Add remaining libvirt_xml serial device properties

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Generic-ify character device XML support

Signed-off-by: Chris Evich <cevich@redhat.com>
virt-libvirt: Character XML bugfix and unittests

Signed-off-by: Chris Evich <cevich@redhat.com>