All,

As Yu reminded me this morning, I need to keep things moving forward
with all the libvirt_xml.devices stuff, so...

https://github.com/autotest/virt-test/pull/548

...introduces "stubs" for ALL unwritten device modules.  Meaning
absolute bare-minimum interface to make it work.   With this, adding a
new channel-device (for example) can go like this:

import common
from libvirt_xml.vm_xml import VMXML
vm_xml = VMXML.new_from_dumpxml('virt-tests-vm1')
new_channel = vm_xml.get_device_class('channel')(type_name='unix')
new_channel.add_source(mode='foo', path='bar')
new_channel.add_target(type='bar', name='foo')
vm_xml.devices = vm_xml.devices.append(new_channel)

Could I request a quick peek through that pull request to see if anyone
can find any typo's I made?  I added unittests to check the
functionality, but I'm no so good at spelling sometimes :D

Thanks!

-- 
Chris Evich, RHCA, RHCE, RHCDS, RHCSS
Quality Assurance Engineer
e-mail: cevich + `@' + redhat.com o: 1-888-RED-HAT1 x44214

_______________________________________________
Virt-test-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-test-devel

Reply via email to