Beispiel #1
0
 def detach(self):
     """
     Detach the device from the host. This method *must* be
     called before getXML in order to populate _deviceParams.
     """
     if self.is_hostdevice:
         detach_detachable(self.hostdev)
     else:
         raise Exception("Tried to detach a non host device: %s" % (self.conf,))
Beispiel #2
0
 def detach(self):
     """
     Detach the device from the host. This method *must* be
     called before getXML in order to populate _deviceParams.
     """
     if self.is_hostdevice:
         detach_detachable(self.hostdev)
     else:
         raise Exception('Tried to detach a non host device: %s' %
                         (self.conf, ))
Beispiel #3
0
 def detach(self):
     """
     Detach the device from the host. This method *must* be
     called before getXML in order to populate _deviceParams.
     """
     self._deviceParams = detach_detachable(self.device)
Beispiel #4
0
 def detach(self):
     """
     Detach the device from the host. This method *must* be
     called before getXML in order to populate _deviceParams.
     """
     self._deviceParams = detach_detachable(self.device)