Returns whether an interface is valid or not
(self, dev)
| 74 | return conf.L3socket |
| 75 | |
| 76 | def _is_valid(self, dev): |
| 77 | # type: (NetworkInterface) -> bool |
| 78 | """Returns whether an interface is valid or not""" |
| 79 | return bool((dev.ips[4] or dev.ips[6]) and dev.mac) |
| 80 | |
| 81 | def _format(self, |
| 82 | dev, # type: NetworkInterface |