mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtinst: Add a compare_controller function for future use
Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
0198db6d3f
commit
65db33fec0
@ -72,6 +72,12 @@ class VirtualDeviceAddress(XMLBuilder):
|
|||||||
raise ValueError(_("Could not determine or unsupported "
|
raise ValueError(_("Could not determine or unsupported "
|
||||||
"format of '%s'") % addrstr)
|
"format of '%s'") % addrstr)
|
||||||
|
|
||||||
|
def compare_controller(self, controller, dev_bus):
|
||||||
|
if (controller.type == dev_bus and
|
||||||
|
controller.index == self.controller):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
type = XMLProperty("./@type")
|
type = XMLProperty("./@type")
|
||||||
# type=pci
|
# type=pci
|
||||||
|
Loading…
Reference in New Issue
Block a user