Commit 9e45f92f authored by Dionysis Grigoropoulos's avatar Dionysis Grigoropoulos Committed by Christos Stavrakakis
Browse files

cyclades: Update snf-manage network-create

* Allow the creation of a network without specifying any subnets
parent cc31fa13
......@@ -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")
......
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