Revision d368ec0c snf-cyclades-app/synnefo/management/common.py
b/snf-cyclades-app/synnefo/management/common.py | ||
---|---|---|
91 | 91 |
gateway6 = options['gateway6'] |
92 | 92 |
|
93 | 93 |
try: |
94 |
net = ipaddr.IPv4Network(subnet) |
|
94 |
net = ipaddr.IPv4Network(subnet, strict=True)
|
|
95 | 95 |
prefix = net.prefixlen |
96 | 96 |
if not validate_network_size(prefix): |
97 | 97 |
raise CommandError("Unsupport network mask %d." |
Also available in: Unified diff