Commit 0d4ed0e2 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix condition for network netmask size

parent 3e954fa2
......@@ -184,7 +184,7 @@ def validate_network_params(subnet=None, gateway=None, subnet6=None,
# Check that network size is allowed!
prefixlen = network.prefixlen
if not prefixlen <= 29 and prefixlen > settings.MAX_CIDR_BLOCK:
if prefixlen > 29 or prefixlen <= settings.MAX_CIDR_BLOCK:
raise faults.OverLimit(
message="Unsupported network size",
details="Netmask must be in range: (%s, 29]" %
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment