mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-04 17:47:19 +03: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 "
|
||||
"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=pci
|
||||
|
Loading…
x
Reference in New Issue
Block a user