def get_primary_machine_cidr(self):
    cidr = self.nodes.controller.get_primary_machine_cidr()
    if (not cidr):
        matching_cidrs = self.get_cluster_matching_cidrs(Cluster.get_cluster_hosts(self.get_details()))
        if (not matching_cidrs):
            raise RuntimeError('No matching cidr for DHCP')
        cidr = next(iter(matching_cidrs))
    return cidr
def get_primary_machine_cidr(self):
    cidr = self.nodes.controller.get_primary_machine_cidr()
    if (not cidr):
        matching_cidrs = self.get_cluster_matching_cidrs(Cluster.get_cluster_hosts(self.get_details()))
        if (not matching_cidrs):
            raise RuntimeError('No matching cidr for DHCP')
        cidr = next(iter(matching_cidrs))
    return cidr