Ejemplo n.º 1
0
 def setup(self):
     if self.is_hostdevice:
         self.log.info('Detaching device %s from the host.' % self.hostdev)
         detach_detachable(self.hostdev)
     else:
         bridge_info = supervdsm.getProxy().ovs_bridge(self.network)
         if bridge_info and bridge_info['dpdk_enabled']:
             self._is_vhostuser = True
             self._create_vhost_port(bridge_info['name'])
Ejemplo n.º 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,))
Ejemplo n.º 3
0
 def setup(self):
     self.log.info('Detaching device %s from the host.' % self.device)
     detach_detachable(self.device)
Ejemplo n.º 4
0
 def setup(self):
     detach_detachable(self.device)
Ejemplo n.º 5
0
 def setup(self):
     if self.is_hostdevice:
         self.log.info('Detaching device %s from the host.' % self.hostdev)
         detach_detachable(self.hostdev)
Ejemplo n.º 6
0
 def setup(self):
     logging.debug('Detaching device %s from the host.' % self.device)
     self._deviceParams = detach_detachable(self.device)
Ejemplo n.º 7
0
 def setup(self):
     self.log.info('Detaching device %s from the host.' % self.device)
     detach_detachable(self.device)
Ejemplo n.º 8
0
 def setup(self):
     detach_detachable(self.device)
Ejemplo n.º 9
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)
Ejemplo n.º 10
0
 def setup(self):
     if self.is_hostdevice:
         self.log.info('Detaching device %s from the host.' % self.hostdev)
         detach_detachable(self.hostdev)
Ejemplo n.º 11
0
 def setup(self):
     if self.is_hostdevice:
         logging.debug('Detaching device %s from the host.' % self.device)
         detach_detachable(self.hostdev)
Ejemplo n.º 12
0
 def setup(self):
     if self.is_hostdevice:
         logging.debug('Detaching device %s from the host.' % self.device)
         detach_detachable(self.hostdev)