@classmethod
    def get_by_cluster(cls, cluster_id):
        return db().query(
            models.NetworkGroup.id,
            models.NetworkGroup.name,
            models.NetworkGroup.meta,
        ).join(
            models.NetworkGroup.nodegroup
        ).filter(
            models.NodeGroup.cluster_id == cluster_id,
            models.NetworkGroup.name != consts.NETWORKS.fuelweb_admin
        )
C{--logger} with a non-existent object raises a L{UsageError}.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/objects/network_group.py/NetworkGroup.get_by_cluster--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_twistd.py/ServerOptionsTests.test_badAttributeWithConfiguredLogObserver