@classmethod
    def _check_vip_name(cls, data, cluster):
        network_roles = objects.Cluster.get_network_roles(cluster)

        allowed_vip_names = set()
        for net_role in network_roles:
            vip_info = net_role.get('properties', {}).get('vip', [])
            allowed_vip_names.update(vip['name'] for vip in vip_info)

        if allowed_vip_names not in data['vip_name']:
            raise errors.InvalidData(
                "Name {0} is not found in VIP metadata for network roles "
                "of cluster with id {1}"
                .format(data['vip_name'], cluster.id)
            )
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/validators/ip_addr.py/IPAddrValidator._check_vip_name/swapped operands of `not in`