Extract the list of tracked IPv4 CIDR Networks from the Mongo database. They are stored within the adope_ips global.
(self)
| 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 | """ |
no test coverage detected