Is the provided IP within one of the Azure CIDRs?
(self, ip)
| 285 | return self.check_in_cidr(ip_addr, self.AWS_IPs) |
| 286 | |
| 287 | def is_azure_ip(self, ip): |
| 288 | """ |
| 289 | Is the provided IP within one of the Azure CIDRs? |
| 290 | """ |
| 291 | if isinstance(ip, str): |
| 292 | ip_addr = IPAddress(ip) |
| 293 | else: |
| 294 | ip_addr = ip |
| 295 | |
| 296 | if self.Azure_IPs is None: |
| 297 | self.__get_azure_ips() |
| 298 | |
| 299 | return self.check_in_cidr(ip_addr, self.Azure_IPs) |
| 300 | |
| 301 | def is_gcp_ip(self, ip): |
| 302 | """ |
no test coverage detected