Revision dce3fc8b snf-cyclades-app/synnefo/logic/management/commands/network-create.py
b/snf-cyclades-app/synnefo/logic/management/commands/network-create.py | ||
---|---|---|
183 | 183 |
raise CommandError("Cannot use allocation-pools without subnet") |
184 | 184 |
if subnet6 is None and gateway6 is not None: |
185 | 185 |
raise CommandError("Cannot use gateway6 without subnet6") |
186 |
if flavor == "IP_LESS_ROUTED" and not (subnet or subnet6): |
|
187 |
raise CommandError("Cannot create 'IP_LESS_ROUTED' network without" |
|
188 |
" subnet") |
|
186 | 189 |
|
187 | 190 |
if not (userid or public): |
188 | 191 |
raise CommandError("'owner' is required for private networks") |
Also available in: Unified diff