Ejemplo n.º 1
0
 def create_device_configurations(self):
     """Create and populate the state of network devices configuration."""
     self._device_configurations = DeviceConfigurations(self.nm_client)
     self._device_configurations.configurations_changed.connect(
         self.device_configurations_changed_cb)
     self._device_configurations.reload()
     self._device_configurations.connect()
     log.debug("Device configurations created: %s",
               self._device_configurations)
Ejemplo n.º 2
0
 def create_device_configurations(self):
     """Create and populate the state of network devices configuration."""
     if not self.nm_available:
         log.debug("Device configurations can't be created, no NetworkManager available.")
         return
     self._device_configurations = DeviceConfigurations(self.nm_client)
     self._device_configurations.configurations_changed.connect(self.device_configurations_changed_cb)
     self._device_configurations.reload()
     self._device_configurations.connect()
     log.debug("Device configurations created: %s", self._device_configurations)