Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
9e45f92f
Commit
9e45f92f
authored
Nov 14, 2013
by
Dionysis Grigoropoulos
Committed by
Christos Stavrakakis
Nov 25, 2013
Browse files
cyclades: Update snf-manage network-create
* Allow the creation of a network without specifying any subnets
parent
cc31fa13
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/management/commands/network-create.py
View file @
9e45f92f
...
...
@@ -166,8 +166,8 @@ class Command(BaseCommand):
if
flavor
is
None
:
raise
CommandError
(
"flavor is required"
)
if
(
subnet
is
None
)
and
(
subnet6
is
None
):
raise
CommandError
(
"subnet or subnet6
is required
"
)
if
(
(
subnet
is
None
)
and
(
subnet6
is
None
)
)
and
dhcp
is
not
False
:
raise
CommandError
(
"
Cannot set DHCP without
subnet or subnet6"
)
if
subnet
is
None
and
gateway
is
not
None
:
raise
CommandError
(
"Cannot use gateway without subnet"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment