Get the list of AWS IPv4 CIDRs.
(self)
| 121 | self.Akamai_IPs.append(IPNetwork(result["cidr"])) |
| 122 | |
| 123 | def __get_aws_ips(self): |
| 124 | """ |
| 125 | Get the list of AWS IPv4 CIDRs. |
| 126 | """ |
| 127 | self.AWS_IPs = [] |
| 128 | aws_ips_collection = self._mongo_connector.get_aws_ips_connection() |
| 129 | |
| 130 | results = self._mongo_connector.perform_find_one(aws_ips_collection, {}) |
| 131 | |
| 132 | if results is not None: |
| 133 | for result in results["prefixes"]: |
| 134 | self.AWS_IPs.append(IPNetwork(result["ip_prefix"])) |
| 135 | |
| 136 | def __get_aws_ipv6s(self): |
| 137 | """ |
no test coverage detected