예제 #1
0
파일: network.py 프로젝트: fancyKai/vdsm
 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,))
예제 #2
0
파일: network.py 프로젝트: borisroman/vdsm
 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, ))
예제 #3
0
파일: hostdevice.py 프로젝트: fancyKai/vdsm
 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)
예제 #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)