Revision 1709a768 snf-cyclades-app/synnefo/logic/subnets.py
b/snf-cyclades-app/synnefo/logic/subnets.py | ||
---|---|---|
93 | 93 |
|
94 | 94 |
check_number_of_subnets(network, ipversion) |
95 | 95 |
|
96 |
if network.backend_networks.exists(): |
|
97 |
raise api.faults.BadRequest("Cannot create subnet in network %s, VMs" |
|
98 |
" are already connected to this network" % |
|
99 |
network_id) |
|
100 |
|
|
96 | 101 |
try: |
97 | 102 |
cidr_ip = ipaddr.IPNetwork(cidr) |
98 | 103 |
except ValueError: |
Also available in: Unified diff