Revision 8d5795b4 snf-cyclades-app/synnefo/api/management/commands/network-modify.py
b/snf-cyclades-app/synnefo/api/management/commands/network-modify.py | ||
---|---|---|
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 | 130 |
if network.ips.filter(deleted=False, floating_ip=True).exists(): |
131 |
msg = ("Can not make network a non floating IP pool."
|
|
131 |
msg = ("Cannot make network a non floating IP pool." |
|
132 | 132 |
" There are still reserved floating IPs.") |
133 | 133 |
raise CommandError(msg) |
134 | 134 |
network.floating_ip_pool = floating_ip_pool |
... | ... | |
173 | 173 |
backend = get_backend(remove_from_backend) |
174 | 174 |
if network.nics.filter(machine__backend=backend, |
175 | 175 |
machine__deleted=False).exists(): |
176 |
msg = "Can not remove. There are still connected VMs to this"\
|
|
176 |
msg = "Cannot remove. There are still connected VMs to this"\ |
|
177 | 177 |
" network" |
178 | 178 |
raise CommandError(msg) |
179 | 179 |
backend_mod.delete_network(network, backend, disconnect=True) |
Also available in: Unified diff