Extend class LibvirtXML #534

Closed
tang-chen opened this Issue Aug 31, 2012 · 4 comments

Projects

None yet

2 participants

@tang-chen
Contributor

Hi all,

Let's extend class LibvirtXML to support more xml operations.

  1. Construct the class inherit tree like the following.

LibvirtXML(XMLTreeFile)
|
|------VMXML(LibvirtXML)
| |
| |------VMInterfaceXML(VMXML)
| |------VMDiskXML(VMXML)
| |------VMControllerXML(VMXML)
| |------......
|
|------NetworkXML(LibvirtXML)
|
|------StorageXML(LibvirtXML)
|
|------......

  1. Make VMXML object as a member of class VM in libvirt_vm.py.

    1. Remove all xml related function in class VM.
    2. Initialize VMXML object with dumpxml command when VM object
      is initialized.
    3. Modify all functions like vm.attach-interface() to update
      VMXML object when they modifise the vm's configuration.

How about this?

Adding to tracking issue #497

@cevich cevich was assigned Sep 18, 2012
@cevich
Member
cevich commented Sep 18, 2012

Assigning this to myself since it's been on my mind a lot lately. I've got some related patches based on your idea ready to go once the tree opens up again.

@tang-chen
Contributor

OK, thanks. :)

@cevich
Member
cevich commented Oct 19, 2012

Moved to virt-test repo: autotest/virt-test#58

@cevich cevich closed this Oct 19, 2012
@cevich cevich referenced this issue in autotest/virt-test Oct 19, 2012
Closed

libvirt_xml enablement #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment