lvsb_base: Add sandbox options mapper

The patch fixes several small issues firstly, for example, to avoid
the make_sandbox_command_line() is called twice, and should append
option for flag rather than argument. And then the patch implement
a sandbox options mapper, which will help complex options testing.

Signed-off-by: Alex Jia <ajia@redhat.com>
lvsb: support complex options sandboxes

Refactor codes to support complex sandbox testing.

Signed-off-by: Alex Jia <ajia@redhat.com>
virttest: build a object with counts generator

Implement a generator based on object and counts.

Signed-off-by: Alex Jia <ajia@redhat.com>
virttest.standalone_test: Use name instead shortname in print_guest_list

When we list the guest names with run we need the whole guest name but not
the shortname. Otherwise we will filter more cases than expect when we use
the output from --list-guests to run a test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
libvirt_xml: Add support of net and storage for nodedev_xml.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml: add implemention for hostdev in libvirt_xml/devices/.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_xml: add a function to add hostdev device in vm_xml.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.iscsi: Support creating LUN on exist target.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
setup_or_cleanup_iscsi: Use utils_selinux

Rather than blindly clearing/setting the selinux enforce value
first check if it is actually set to enforcing before lowering
to permissive.  Then after done, don't blindly set back to
enforcing unless it was set prior.
Adjust error message text for Iscsi
env_process: Free mac address when destroying VM

Sometimes we meet error "NetError: qemu/default MAC generation
failed with prefix 9a after 1024 attempts for NIC nic1 on VM virt-tests-vm1

We should free the mac address when destroying VM. Then we can
reuse the mac in other case.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest: issue fix for wait_for_get_address.

wait_for_get_address will raise error, when try to get guest
ipv4 address via serial session, this patch fix this issue

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.libvirt_storage: Fix a typo.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
utils_test.libvirt: Enhancements of setup/cleanup nfs/iscsi functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
Merge pull request #1453 from chuanchang/lvsb_complex_options

Refactoring codes and support complex virt-sandbox options testing
virttest.lvsb_base: Inspekt PEP8 fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #1454 from ypu/guestname

virttest.standalone_test: Use name instead shortname in print_guest_list
Merge pull request #1473 from humanux/ipaddr_issue_fix

virttest: issue fix for wait_for_get_address.
Merge pull request #1461 from yangdongsheng/pci_passthrough

libvirt: Pci passthrough
Merge pull request #1460 from yumingfei/iscsi_enhancement

virttest.iscsi: Support creating LUN on exist target.