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>
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>
virttest.utils_sasl: add SASL common utilities

Signed-off-by: Alex Jia <chuanchang.jia@gmail.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>
virttest.utils_netperf: Update start() function in NetperfClient class

Change to use cmd_output_safe() function.

Signed-off-by: Feng Yang <fyang@redhat.com>
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.
virttest.utils_libguestfs: fix a typo in pvresize_size
iscsi.export_target: change selinux mode

If selinux is enforcing, when adding a logicalunit to a target during
iscsi target epxport, you will get the error: 'tgtadm: invalid request'.
So compromise selinux mode to avoid this problem.

Signed-off-by: Yanbing Du <ydu@redhat.com>
iscsi: Support CHAP authentication for iscsi target

1. Implement CHAP authentication setup.
2. Update libvirt secret_xml to use CHAP authentication.

Signed-off-by: Yanbing Du <ydu@redhat.com>