virttest: Remove sit0 in get_linux_ifname of utils_net

sit0 is IPv6-in-IPv4 device added in system which not represent devices
added by vm.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
utils_libvirtd: Don't need to wait if start failed

If libvirtd service start or restart failed, just checking the exit code
will be enough, we don't need to wait 60 seconds to check whether a
virsh command can be executed.

Signed-off-by: Hao Liu <hliu@redhat.com>
virttest.utils_misc: Support url in get_path().

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.utils_netperf: Add netperf class.

Add netperf class as base class.

Support netperf client in windows guest.

Support install parameter to control whether install netperf or not.

Signed-off-by: Feng Yang <fyang@redhat.com>
libvirt_xml: Introduce a method get_section_string() in base

Sometimes we need to get the all element in xml, this
method will return a string of a element.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
cfg.base: Add migration relative parameters.

Use remote_ip and local_ip as destination and source host
for migration may disturb libvirt tests. So separate them
only for migration relative tests.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Add address slot to interface xml.
libvirt: add a configuration file named drivers.cfg

Currently, the special configurations for specific driver is rewrite
in setting params of libvirt_vm.VM. This patch move this work to the
configuration file parsing.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_vm: recreate serial in lxc.wait_for_login()

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt: Remove some filters from v2v/cfg/tests.cfg

These filters will make './run -t v2v --list-tests'
cannot get all test cases in v2v, so remove them.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #1713 from Hao-Liu/fix_libvirtd

utils_libvirtd: Don't need to wait if start failed
virttest.utils_netperf: Update start() function in NetperfClient class

Change to use cmd_output_safe() function.

Signed-off-by: Feng Yang <fyang@redhat.com>
Merge pull request #1742 from liyangfnst/v2v

virt: Remove some filters from v2v/cfg/tests.cfg
Add encryption options.

Modify disk xml and volume xml.
Remove get_virtio_disk_slots and git_disk_type function.
Merge pull request #1733 from rbian/disk-options

Add address slot to interface xml.
Merge pull request #1687 from rbian/disk-encryption

Disk encryption support in disk/volume xml.
utils_misc: Fix get_image_info fail to get format

For qemu-img-1.5.3, We get following message when running:
> qemu-img info /var/lib/virt_test/images/jeos-19-64.qcow2
image: /var/lib/virt_test/images/jeos-19-64.qcow2
file format: qcow2
virtual size: 10G (10737418240 bytes)
disk size: 761M
cluster_size: 65536
Format specific information:
    compat: 0.10

The `Format specific information:` line which containing a
`Format` will flush the saved file format. Now we use a more
specific line to check file format.

Signed-off-by: Hao Liu <hliu@redhat.com>
libvirt_xml: add a missing xpath for %s.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Merge pull request #1724 from yangdongsheng/get_section

libvirt_xml: Introduce a method get_section_string() in base
Merge pull request #1745 from yangdongsheng/xpath

libvirt_xml: add a missing xpath for %s.