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

Method is_azure_ip

python3_cron_scripts/libs3/IPManager.py:287–299  ·  view source on GitHub ↗

Is the provided IP within one of the Azure CIDRs?

(self, ip)

Source from the content-addressed store, hash-verified

285 return self.check_in_cidr(ip_addr, self.AWS_IPs)
286
287 def is_azure_ip(self, ip):
288 """
289 Is the provided IP within one of the Azure CIDRs?
290 """
291 if isinstance(ip, str):
292 ip_addr = IPAddress(ip)
293 else:
294 ip_addr = ip
295
296 if self.Azure_IPs is None:
297 self.__get_azure_ips()
298
299 return self.check_in_cidr(ip_addr, self.Azure_IPs)
300
301 def is_gcp_ip(self, ip):
302 """

Callers 6

mainFunction · 0.95
create_network_data_setsFunction · 0.95
process_threadFunction · 0.80
process_threadFunction · 0.80
find_all_dns_by_zoneFunction · 0.80
find_srdns_by_zoneFunction · 0.80

Calls 2

__get_azure_ipsMethod · 0.95
check_in_cidrMethod · 0.95

Tested by

no test coverage detected