def get_machine_networks(self):
    networks = []
    primary_machine_cidr = self.nodes.controller.get_primary_machine_cidr()
    if primary_machine_cidr:
        networks.append(primary_machine_cidr)
    secondary_machine_cidr = self.nodes.controller.get_provisioning_cidr()
    if secondary_machine_cidr:
        networks.append(secondary_machine_cidr)
    if (not networks):
        networks = self.get_cluster_matching_cidrs(Cluster.get_cluster_hosts(self.get_details()))
        if (not networks):
            raise RuntimeError('No matching cidr for DHCP')
    return networks
def get_machine_networks(self):
    networks = []
    primary_machine_cidr = self.nodes.controller.get_primary_machine_cidr()
    if primary_machine_cidr:
        networks.append(primary_machine_cidr)
    secondary_machine_cidr = self.nodes.controller.get_provisioning_cidr()
    if secondary_machine_cidr:
        networks.append(secondary_machine_cidr)
    if (not networks):
        networks = self.get_cluster_matching_cidrs(Cluster.get_cluster_hosts(self.get_details()))
        if (not networks):
            raise RuntimeError('No matching cidr for DHCP')
    return networks