def _ComputeViolatingInstances(ipolicy, instances, cfg):
  return frozenset([inst.name for inst in instances
                    if ComputeIPolicyInstanceViolation(ipolicy, inst, cfg)])
Computes a set of instances who violates given ipolicy.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/_ComputeViolatingInstances