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

Method __get_gcp_ipv6s

python3_cron_scripts/libs3/IPManager.py:183–200  ·  view source on GitHub ↗

Get the list of GCP IPv6 CIDRs.

(self)

Source from the content-addressed store, hash-verified

181 self.GCP_IPs.append(IPNetwork(result["ip_prefix"]))
182
183 def __get_gcp_ipv6s(self):
184 """
185 Get the list of GCP IPv6 CIDRs.
186 """
187 if self.GCP_IPs is None:
188 self.GCP_IPs = []
189
190 gcp_ips_collection = self._mongo_connector.get_gcp_ips_connection()
191
192 results = self._mongo_connector.perform_find_one(gcp_ips_collection, {})
193
194 if (
195 results is not None
196 and "ipv6_prefixes" in results
197 and len(results["ipv6_prefixes"]) > 0
198 ):
199 for result in results["ipv6_prefixes"]:
200 self.GCP_IPs.append(IPNetwork(result["ipv6_prefix"]))
201
202 def __get_tracked_cidrs(self):
203 """

Callers 3

__init__Method · 0.95
is_gcp_ipMethod · 0.95
find_partner_rangeMethod · 0.95

Calls 2

perform_find_oneMethod · 0.80

Tested by

no test coverage detected