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

Method __get_azure_ips

python3_cron_scripts/libs3/IPManager.py:151–162  ·  view source on GitHub ↗

Get the list of Azure CIDRs.

(self)

Source from the content-addressed store, hash-verified

149 self.AWS_IPs.append(IPNetwork(result["ipv6_prefix"]))
150
151 def __get_azure_ips(self):
152 """
153 Get the list of Azure CIDRs.
154 """
155 self.Azure_IPs = []
156 azure_ips_collection = self._mongo_connector.get_azure_ips_connection()
157
158 results = self._mongo_connector.perform_find_one(azure_ips_collection, {})
159
160 if results is not None:
161 for result in results["prefixes"]:
162 self.Azure_IPs.append(IPNetwork(result["ip_prefix"]))
163
164 def __get_gcp_ips(self):
165 """

Callers 3

__init__Method · 0.95
is_azure_ipMethod · 0.95
find_partner_rangeMethod · 0.95

Calls 2

perform_find_oneMethod · 0.80

Tested by

no test coverage detected