Extract the list of Akamai Networks from the Mongo database. They are stored within the akamai_ips global.
(self)
| 90 | self.__get_tracked_ipv6_cidrs() |
| 91 | |
| 92 | def __get_akamai_ips(self): |
| 93 | """ |
| 94 | Extract the list of Akamai Networks from the Mongo database. |
| 95 | They are stored within the akamai_ips global. |
| 96 | """ |
| 97 | self.Akamai_IPs = [] |
| 98 | |
| 99 | akamai_collection = self._mongo_connector.get_akamai_ips_connection() |
| 100 | |
| 101 | results = self._mongo_connector.perform_find_one(akamai_collection, {}) |
| 102 | |
| 103 | if results is not None: |
| 104 | for result in results["ranges"]: |
| 105 | self.Akamai_IPs.append(IPNetwork(result["cidr"])) |
| 106 | |
| 107 | def __get_akamai_ipv6s(self): |
| 108 | """ |
no test coverage detected