base.cfg: Add host_ip_addr parameter

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
virt.kvm_vm.py: Use host ip for informing spice client about migration

Spice client may not run on localhost even during single host migration
so we need to inform spice client about host IP which is not localhost.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
utils_misc: Add get_host_ip_address() function

Function returns Host IP specified in host_ip parameter If It exists
otherwise returns IP on interface specified in netdst parameter.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
virt.rv_connect: Use get_host_ip_address()

Using get_host_ip_address() to be able to change
host ip of host address (where remote-viewer connects to)
in configuration.

Signed-off-by: Marian Krcmarik <mkrcmari@redhat.com>
Add list and managedsave(remove)() methods to libvirt_vm.

This patch adds functions list,managedsave(remove) to libvirt_vm.py.

Signed-off-by: Yu Mingfei<yumingfei@cn.fujitsu.com>
Add configuration for the virsh list testcases to subtest.cfg.sample.

Signed-off-by: Yu Mingfei<yumingfei@cn.fujitsu.com>
Add test for virsh list command

Signed-off-by: Yu Mingfei<yumingfei@cn.fujitsu.com>
virt-libvirt: Add basic libvirt_xml module

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

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.libvirt_vm: Pretty print virt install command

Just as we made with the kvm based class, reformat
the command that is going to be printed to the logs,
making it more readable. With the patch, a virt-install
command line now looks like:

18:52:54 INFO | Running libvirt command (reformatted):
18:52:54 INFO | /usr/bin/virt-install
18:52:54 INFO |     --hvm
18:52:54 INFO |     --accelerate
18:52:54 INFO |     --name 'vm1'
18:52:54 INFO |     --ram=1024
18:52:54 INFO |     --vcpu=2
18:52:54 INFO |     --location /tmp/libvirt_autotest_root/
18:52:54 INFO |     --vnc
18:52:54 INFO |     --os-type linux
18:52:54 INFO |     --serial file,path=/tmp/serial-20120823-184442-fDoeZO3Z
18:52:54 INFO |     --serial pty
18:52:54 INFO |     --disk path=/tmp/libvirt_autotest_root/images/f17-64.raw,bus=virtio,size=10,format=raw,cache=none
18:52:54 INFO |     --disk path=/tmp/libvirt_autotest_root/isos/linux/Fedora-17-x86_64-DVD.iso,device=cdrom
18:52:54 INFO |     --disk path=/tmp/libvirt_autotest_root/images/f17-64/ks.iso,device=cdrom
18:52:54 INFO |     --network=bridge=virbr0,model=virtio,mac=52:54:00:34:35:36
18:52:54 INFO |     --extra-args 'repo=cdrom:/dev/sr1 ks=cdrom:/dev/sr0 nicdelay=60 console=ttyS0,115200 console=tty0'
18:52:54 INFO |     --noautoconsole

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.env_process: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.http_server: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.installer: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.kvm_vm: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.ovirt: Simplify error message

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.qemu_io: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.ppm_utils: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.rss_client: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.scheduler: cleanups

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.step_editor: cleanups and make it independent of autotest

Do the usual cleanups (try to remove as much as possible
use of reserved symbols), and also, reduce cross dependency
on other autotest libs. step editor is useful even outside
of the autotest realm, so this paves the way for external
usage of this application.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>