def get_node_ips_from_config(boot_config):
    """
    Returns the IPs of the configured nodes
    :param boot_config: the snaps-boot config to parse
    :return: a list if IPs for the given nodes
    """
    out_hosts = list()
    if ('PROVISION' in boot_config
            and 'DHCP' in boot_config['PROVISION']
            and 'subnet' in boot_config['PROVISION']['DHCP']):
        for subnet in boot_config['PROVISION']['DHCP']['subnet']:
            if 'bind_host' in subnet:
                for bind_host in subnet['bind_host']:
                    if 'ip' in bind_host:
                        out_hosts.append(bind_host['ip'])
    return out_hosts