(self)
| 162 | return bool(dev.flags & IFF_UP) |
| 163 | |
| 164 | def load(self): |
| 165 | # type: () -> Dict[str, NetworkInterface] |
| 166 | data = {} |
| 167 | for iface in _get_if_list().values(): |
| 168 | if_data = iface.copy() |
| 169 | if_data.update({ |
| 170 | "network_name": iface["name"], |
| 171 | "description": iface["name"], |
| 172 | "ips": [x["address"] for x in iface["ips"]] |
| 173 | }) |
| 174 | data[iface["name"]] = NetworkInterface(self, if_data) |
| 175 | return data |
| 176 | |
| 177 | |
| 178 | conf.ifaces.register_provider(LinuxInterfaceProvider) |
nothing calls this directly
no test coverage detected