@classmethod
    def _check_ips_out_of_ip_ranges(cls, ng_db, nm, ranges):
        ips = nm.get_assigned_ips_by_network_id(ng_db.id)
        # check IPs of bootstrap nodes in Admin network
        if ng_db.name == consts.NETWORKS.fuelweb_admin:
            if ng_db.group_id is None:
                # shared admin network. get nodes from all default groups
                nodes = db().query(Node.ip).join(NodeGroup).filter(
                    NodeGroup.is_default.is_(True)
                )
            else:
                nodes = db().query(Node.ip).filter(
                    Node.group_id == ng_db.group_id,
                    Node.cluster_id.isnot(None)
                )
            ips.extend(x[0] for x in nodes)

        return not nm.check_ips_belong_to_ranges(ips, ranges)
Check if any of IPs in the network is out of provided IP ranges.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/validators/network.py/NetworkConfigurationValidator._check_ips_out_of_ip_ranges