:param port: (int) ip port :returns: True if ip port has info, False otherwise
(self, port)
| 1106 | return [] |
| 1107 | |
| 1108 | def has_ip(self, port): |
| 1109 | """ |
| 1110 | :param port: (int) ip port |
| 1111 | :returns: True if ip port has info, False otherwise |
| 1112 | |
| 1113 | """ |
| 1114 | assert ( |
| 1115 | type(port) is int |
| 1116 | ), f"Wrong type for [port], should be an int [was {type(port)}]" |
| 1117 | |
| 1118 | if "ip" in list(self.keys()) and port in list(self["ip"].keys()): |
| 1119 | return True |
| 1120 | return False |
| 1121 | |
| 1122 | def ip(self, port): |
| 1123 | """ |