Hi Chris,Lucas:

Thanks your comments of v1 patchset.
In fact, I mistaked the value "vm_xml.name".^_^

But I have read xml_utils.py and ElementTree.py carefully.
I find that only class _ElementInterface has function remove(...),
but I can not get it from ElementTree, so as class XMLBase.

Since XMLBase inherit ElementTree, I move remove() to class XMLBase.
Is this ok?

In addition, I still use libvirt_vm.py as virsh because the work of moving 
virsh_xxx()
is underway.

Yu Mingfei (2):
  shared.xml_utils:add remove function to XMLBase.
    virt.libvirt_xml:operations of libvirt xmlfile.
  client.tests.libvirt:a testcase to rename a domain(just to help your
    test).

 client/shared/xml_utils.py                        |   10 +++++
 client/tests/libvirt/tests/virsh_rename_domain.py |   25 ++++++++++++
 client/virt/libvirt_xml.py                        |   42 +++++++++++++++++++++
 client/virt/subtests.cfg.sample                   |    5 ++
 4 files changed, 82 insertions(+), 0 deletions(-)
 create mode 100644 client/tests/libvirt/tests/virsh_rename_domain.py
 create mode 100644 client/virt/libvirt_xml.py

--
Best Regards
Yu Mingfei

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to