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

Method __get_aws_ipv6s

python3_cron_scripts/libs3/IPManager.py:136–149  ·  view source on GitHub ↗

Get the list of AWS IPv6 CIDRs.

(self)

Source from the content-addressed store, hash-verified

134 self.AWS_IPs.append(IPNetwork(result["ip_prefix"]))
135
136 def __get_aws_ipv6s(self):
137 """
138 Get the list of AWS IPv6 CIDRs.
139 """
140 if self.AWS_IPs is None:
141 self.AWS_IPs = []
142
143 aws_ips_collection = self._mongo_connector.get_aws_ips_connection()
144
145 results = self._mongo_connector.perform_find_one(aws_ips_collection, {})
146
147 if results is not None:
148 for result in results["ipv6_prefixes"]:
149 self.AWS_IPs.append(IPNetwork(result["ipv6_prefix"]))
150
151 def __get_azure_ips(self):
152 """

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