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

Method __get_aws_ips

python3_cron_scripts/libs3/IPManager.py:123–134  ·  view source on GitHub ↗

Get the list of AWS IPv4 CIDRs.

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

__init__Method · 0.95
is_aws_ipMethod · 0.95
find_partner_rangeMethod · 0.95

Calls 2

perform_find_oneMethod · 0.80

Tested by

no test coverage detected