(self,
dat, # type: Dict[str, NetworkInterface]
prov, # type: InterfaceProvider
)
| 214 | super(NetworkInterfaceDict, self).__init__() |
| 215 | |
| 216 | def _load(self, |
| 217 | dat, # type: Dict[str, NetworkInterface] |
| 218 | prov, # type: InterfaceProvider |
| 219 | ): |
| 220 | # type: (...) -> None |
| 221 | for ifname, iface in dat.items(): |
| 222 | if ifname in self.data: |
| 223 | # Handle priorities: keep except if libpcap |
| 224 | if prov.libpcap: |
| 225 | self.data[ifname] = iface |
| 226 | else: |
| 227 | self.data[ifname] = iface |
| 228 | |
| 229 | def register_provider(self, provider): |
| 230 | # type: (type) -> None |
no test coverage detected