def get_cluster_cidrs(self, hosts: List[ClusterHost]) -> Set[str]:
    cidrs = set()
    for host in hosts:
        ips = []
        if self.nodes.is_ipv4:
            ips += host.ipv4_addresses()
        if self.nodes.is_ipv6:
            ips += host.ipv6_addresses()
        for host_ip in ips:
            cidr = network_utils.get_cidr_by_interface(host_ip)
            cidrs.add(cidr)
    return cidrs
def get_cluster_cidrs(self, hosts: List[ClusterHost]) -> Set[str]:
    cidrs = set()
    for host in hosts:
        ips = []
        if self.nodes.is_ipv4:
            ips += host.ipv4_addresses()
        if self.nodes.is_ipv6:
            ips += host.ipv6_addresses()
        for host_ip in ips:
            cidr = network_utils.get_cidr_by_interface(host_ip)
            cidrs.add(cidr)
    return cidrs