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

Method is_tracked_ip

python3_cron_scripts/libs3/IPManager.py:316–329  ·  view source on GitHub ↗

Is the provided IP within one of the Tracked CIDRs?

(self, ip)

Source from the content-addressed store, hash-verified

314 return self.check_in_cidr(ip_addr, self.GCP_IPs)
315
316 def is_tracked_ip(self, ip):
317 """
318 Is the provided IP within one of the Tracked CIDRs?
319 """
320 if isinstance(ip, str):
321 ip_addr = IPAddress(ip)
322 else:
323 ip_addr = ip
324
325 if self.Tracked_CIDRs is None:
326 self.__get_tracked_cidrs()
327 self.__get_tracked_ipv6_cidrs()
328
329 return self.check_in_cidr(ip_addr, self.Tracked_CIDRs)
330
331 def is_akamai_ip(self, ip):
332 """

Callers 6

mainFunction · 0.95
create_network_data_setsFunction · 0.95
update_dnsFunction · 0.80
update_rdnsFunction · 0.80
process_threadFunction · 0.80
process_threadFunction · 0.80

Calls 3

__get_tracked_cidrsMethod · 0.95
check_in_cidrMethod · 0.95

Tested by

no test coverage detected