Revision a1ab4e66

b/snf-cyclades-app/synnefo/api/management/commands/network-modify.py
127 127
        if floating_ip_pool is not None:
128 128
            floating_ip_pool = parse_bool(floating_ip_pool)
129 129
            if floating_ip_pool is False and network.floating_ip_pool is True:
130
                if network.floating_ips.filter(deleted=False).exists():
130
                if network.ips.filter(deleted=False, floating_ip=True).exists():
131 131
                    msg = ("Can not make network a non floating IP pool."
132 132
                           " There are still reserved floating IPs.")
133 133
                    raise CommandError(msg)

Also available in: Unified diff