def _load_new_devices(self): devices = nm.nm_devices() intf_dumped = network.dumpMissingDefaultIfcfgs() if intf_dumped: log.debug("Dumped interfaces: %s", intf_dumped) for name in devices: if name in self.supported_devices: continue if nm.nm_device_type_is_ethernet(name): # ignore slaves if nm.nm_device_setting_value(name, "connection", "slave-type"): continue self.supported_devices.append(name)
def _load_new_devices(self): devices = nm.nm_devices() intf_dumped = network.dumpMissingDefaultIfcfgs() if intf_dumped: log.debug("dumped interfaces: %s", intf_dumped) for name in devices: if name in self.supported_devices: continue if network.is_ibft_configured_device(name): continue if network.device_type_is_supported_wired(name): # ignore slaves try: if nm.nm_device_setting_value(name, "connection", "slave-type"): continue except nm.MultipleSettingsFoundError as e: log.debug("%s during initialization", e) self.supported_devices.append(name)