KVM test: kvm_vm.py: make 'nic_mac' trigger a VM restart when changed
commite353bdbd563feffd82dccddb53ccd4ce1a312a7e
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 21 Feb 2011 20:36:30 +0000 (21 20:36 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Mon, 21 Feb 2011 20:36:30 +0000 (21 20:36 +0000)
tree05abcf6927ddf7a05e2b2b8f71a33379c34852d9
parent3cba59a8517cf6a97f1e2dc9e75a8567df268174
KVM test: kvm_vm.py: make 'nic_mac' trigger a VM restart when changed

get_mac_address() should first check if 'nic_mac' is defined and then check
the address pool.  This way, if 'nic_mac' is changed between tests,
make_qemu_command(), which calls get_mac_address(), will reveal the change and
trigger a VM restart.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5255 592f7852-d20e-0410-864c-8624ca9c26a4
client/tests/kvm/kvm_vm.py