(self)
| 128 | os.close(fd) |
| 129 | |
| 130 | def load(self): |
| 131 | # type: () -> Dict[str, NetworkInterface] |
| 132 | data = {} |
| 133 | for iface in _get_if_list().values(): |
| 134 | if_data = iface.copy() |
| 135 | if_data.update( |
| 136 | { |
| 137 | "network_name": iface["name"], |
| 138 | "description": iface["name"], |
| 139 | "ips": [x["address"] for x in iface["ips"]], |
| 140 | } |
| 141 | ) |
| 142 | data[iface["name"]] = NetworkInterface(self, if_data) |
| 143 | return data |
| 144 | |
| 145 | |
| 146 | conf.ifaces.register_provider(BPFInterfaceProvider) |
nothing calls this directly
no test coverage detected