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

Method __get_tracked_cidrs

python3_cron_scripts/libs3/IPManager.py:202–215  ·  view source on GitHub ↗

Extract the list of tracked IPv4 CIDR Networks from the Mongo database. They are stored within the adope_ips global.

(self)

Source from the content-addressed store, hash-verified

200 self.GCP_IPs.append(IPNetwork(result["ipv6_prefix"]))
201
202 def __get_tracked_cidrs(self):
203 """
204 Extract the list of tracked IPv4 CIDR Networks from the Mongo database.
205 They are stored within the adope_ips global.
206 """
207 self.Tracked_CIDRs = []
208
209 ipzone_collection = self._mongo_connector.get_ipzone_connection()
210
211 results = self._mongo_connector.perform_find(
212 ipzone_collection, {"status": {"$ne": "false_positive"}}
213 )
214 for result in results:
215 self.Tracked_CIDRs.append(IPNetwork(result["zone"]))
216
217 def __get_tracked_ipv6_cidrs(self):
218 """

Callers 3

__init__Method · 0.95
is_tracked_ipMethod · 0.95
find_partner_rangeMethod · 0.95

Calls 2

perform_findMethod · 0.80
get_ipzone_connectionMethod · 0.45

Tested by

no test coverage detected