virttest.utils_conn: support more features

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virt.shared.cfg: Set mac_changeable to no in unattended_install.

Signed-off-by: Feng Yang <fyang@redhat.com>
Small enhancements for libguestfs.

1.Default timeout for virt-inspect may be not enough.
2.Include hda type driver for finding disk.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt_xml.devices: Add slots for channel.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
standalone_test: Enable only filter when listing tests

Currently when running with option `--list-tests`, we can use `--no`
to remove some tests, but we can't apply an `only` filter.

With this modification, we can apply an `only` filter by running
```
./run -t libvirt --list-tests --tests virsh.domuuid
```
to list only the tests you needed.

Signed-off-by: Hao Liu <hliu@redhat.com>
utils_test.libvirt: Support discard for creating disk xml.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libguestfs: Fix path connection failure.

For guestmount path, we need to connect mountpoint with
provided path. Using abspath() to remove redundant '/'.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add get_disk_attr function to vm_xml.
utils_test.libvirt: Robust method to create/delete local disk

Signed-off-by: Yanbing Du <ydu@redhat.com>
virttest.utils_libvirtd: support remotely control libvirtd

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
vm_xml: Update seclabel functions to support multiple seclabels

Current functions only support one seclabel in domain xml, while
domain xml support at least two seclabels in domain xml, depend on
security drivers, our testing is focus on selinux and DAC.

e.g.
...
  <seclabel type='none' model='dac'/>
  <seclabel type='none' model='selinux'/>
...

so, modify set_seclabel and get_seclabel functions use list contains
dict member as parameter and return.

Signed-off-by: Wayne Sun <gsun@redhat.com>
libvirt_xml_unittest: Update unit test for seclabel

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest.utils_net: fixed clean IPv6 envrionment with error path

In order to avoid remote clean has effect on local then split local and
remote method to get IPv6 address list, and make sure the session is
alive w/o leaks.

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virttest.utils_net: check TCP/IP listening port by service

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
virttest.utils_test.libvirt: add new test utilities

Signed-off-by: Alex Jia <chuanchang.jia@gmail.com>
Modify VMCPUXML class to add more cpu options.
Merge pull request #1767 from chuanchang/fixed_cleanup_with_error_path_on_IPv6_setup

virttest.utils_net: fixed clean IPv6 envrionment with error path
Check tag name before finding it.
Merge pull request #1728 from chuanchang/check_listening_port_by_service

virttest.utils_net: check TCP/IP listening port by service
Merge pull request #1729 from chuanchang/add_utils_test_for_libvirt

virttest.utils_test.libvirt: add new test utilities