MCPcopy Create free account
hub / github.com/adobe/Marinus / __get_akamai_ips

Method __get_akamai_ips

python3_cron_scripts/libs3/IPManager.py:92–105  ·  view source on GitHub ↗

Extract the list of Akamai Networks from the Mongo database. They are stored within the akamai_ips global.

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 3

__init__Method · 0.95
is_akamai_ipMethod · 0.95
find_partner_rangeMethod · 0.95

Calls 2

perform_find_oneMethod · 0.80

Tested by

no test coverage detected