Revision 28ac6e86

b/snf-cyclades-app/synnefo/api/management/commands/network-create.py
166 166
        if flavor is None:
167 167
            raise CommandError("flavor is required")
168 168

  
169
        if (subnet is None) and (subnet6 is None):
170
            raise CommandError("subnet or subnet6 is required")
169
        if ((subnet is None) and (subnet6 is None)) and dhcp is not False:
170
            raise CommandError("Cannot set DHCP without subnet or subnet6")
171 171

  
172 172
        if subnet is None and gateway is not None:
173 173
            raise CommandError("Cannot use gateway without subnet")

Also available in: Unified diff