Revision 8d5795b4 snf-cyclades-app/synnefo/api/management/commands/network-create.py
b/snf-cyclades-app/synnefo/api/management/commands/network-create.py | ||
---|---|---|
165 | 165 |
if (subnet is None) and (subnet6 is None): |
166 | 166 |
raise CommandError("subnet or subnet6 is required") |
167 | 167 |
if subnet is None and gateway is not None: |
168 |
raise CommandError("Can not use gateway without subnet")
|
|
168 |
raise CommandError("Cannot use gateway without subnet") |
|
169 | 169 |
if subnet6 is None and gateway6 is not None: |
170 |
raise CommandError("Can not use gateway6 without subnet6")
|
|
170 |
raise CommandError("Cannot use gateway6 without subnet6") |
|
171 | 171 |
if public and not (backend_ids or floating_ip_pool): |
172 | 172 |
raise CommandError("backend-ids is required") |
173 | 173 |
if not userid and not public: |
Also available in: Unified diff