Is the provided IP within one of the GCP CIDRs?
(self, ip)
| 299 | return self.check_in_cidr(ip_addr, self.Azure_IPs) |
| 300 | |
| 301 | def is_gcp_ip(self, ip): |
| 302 | """ |
| 303 | Is the provided IP within one of the GCP CIDRs? |
| 304 | """ |
| 305 | if isinstance(ip, str): |
| 306 | ip_addr = IPAddress(ip) |
| 307 | else: |
| 308 | ip_addr = ip |
| 309 | |
| 310 | if self.GCP_IPs is None: |
| 311 | self.__get_gcp_ips() |
| 312 | self.__get_gcp_ipv6s() |
| 313 | |
| 314 | return self.check_in_cidr(ip_addr, self.GCP_IPs) |
| 315 | |
| 316 | def is_tracked_ip(self, ip): |
| 317 | """ |
no test coverage detected