Allow specification of libvirt guest interface backend driver
Extend the libvirt config APIs to allow the backend driver name to be set for guest interface devices Change-Id: Ibde6f0c5e1700b414bb188fb47f511a47cfc0abf Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
@@ -547,12 +547,14 @@ class LibvirtConfigGuestInterfaceTest(LibvirtConfigBaseTest):
|
||||
obj.mac_addr = "DE:AD:BE:EF:CA:FE"
|
||||
obj.model = "virtio"
|
||||
obj.target_dev = "vnet0"
|
||||
obj.driver_name = "vhost"
|
||||
|
||||
xml = obj.to_xml()
|
||||
self.assertXmlEqual(xml, """
|
||||
<interface type="ethernet">
|
||||
<mac address="DE:AD:BE:EF:CA:FE"/>
|
||||
<model type="virtio"/>
|
||||
<driver name="vhost"/>
|
||||
<target dev="vnet0"/>
|
||||
</interface>""")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user