Get the list of GCP IPv6 CIDRs.
(self)
| 181 | self.GCP_IPs.append(IPNetwork(result["ip_prefix"])) |
| 182 | |
| 183 | def __get_gcp_ipv6s(self): |
| 184 | """ |
| 185 | Get the list of GCP IPv6 CIDRs. |
| 186 | """ |
| 187 | if self.GCP_IPs is None: |
| 188 | self.GCP_IPs = [] |
| 189 | |
| 190 | gcp_ips_collection = self._mongo_connector.get_gcp_ips_connection() |
| 191 | |
| 192 | results = self._mongo_connector.perform_find_one(gcp_ips_collection, {}) |
| 193 | |
| 194 | if ( |
| 195 | results is not None |
| 196 | and "ipv6_prefixes" in results |
| 197 | and len(results["ipv6_prefixes"]) > 0 |
| 198 | ): |
| 199 | for result in results["ipv6_prefixes"]: |
| 200 | self.GCP_IPs.append(IPNetwork(result["ipv6_prefix"])) |
| 201 | |
| 202 | def __get_tracked_cidrs(self): |
| 203 | """ |
no test coverage detected