Beispiel #1
0
    def __init__(self, **kargs):
        self.conn = kargs['conn']
        if self.conn.get() is not None:
            if self.conn.isQemuURI():
                self._check_default_networks()

        self.caps = CapabilitiesModel(**kargs)
Beispiel #2
0
    def __init__(self, **kargs):
        self.conn = kargs['conn']
        self.objstore = kargs['objstore']
        self.scanner = Scanner(self._clean_scan)
        self.scanner.delete()
        self.caps = CapabilitiesModel(**kargs)
        self.device = DeviceModel(**kargs)

        if self.conn.isQemuURI():
            self._check_default_pools()
Beispiel #3
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.objstore = kargs['objstore']
     self.events = kargs['eventsloop']
     self.caps = CapabilitiesModel(**kargs)
     self.devs_model = DevicesModel(**kargs)
     self.dev_model = DeviceModel(**kargs)
     self.task = TaskModel(**kargs)
     self._cb = None
     self.events.registerAttachDevicesEvent(
         self.conn, self._event_devices, self)
Beispiel #4
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.caps = CapabilitiesModel(**kargs)
     self.cap_map = {
         'net': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET,
         'pci': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV,
         'scsi': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI,
         'scsi_host': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST,
         'storage': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE,
         'usb_device': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV,
         'usb': libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE,
     }
     # TODO: when no longer supporting Libvirt < 1.0.5 distros
     # (like RHEL6) remove this verification and insert the
     # key 'fc_host' with the libvirt variable in the hash
     # declaration above.
     try:
         self.cap_map['fc_host'] = libvirt.VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST
     except AttributeError:
         self.cap_map['fc_host'] = None
Beispiel #5
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.caps = CapabilitiesModel(**kargs)
Beispiel #6
0
 def __init__(self, **kargs):
     self.conn = kargs['conn']
     self.objstore = kargs['objstore']
     self.caps = CapabilitiesModel(**kargs)
     self.task = TaskModel(**kargs)