Commit 6a80d241 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Christos Stavrakakis
Browse files

When creating network, the label subnet can now be cdir in the json request

parent 1a81710f
......@@ -51,7 +51,6 @@ from synnefo.logic import backend
log = getLogger('synnefo.api')
urlpatterns = patterns('synnefo.api.networks',
(r'^(?:/|.json|.xml)?$', 'demux'),
(r'^/detail(?:.json|.xml)?$', 'list_networks', {'detail': True}),
......@@ -156,7 +155,7 @@ def create_network(request):
d = req['network']
name = d['name']
# TODO: Fix this temp values:
subnet = d.get('subnet', '192.168.1.0/24')
subnet = d.get('cidr', '192.168.1.0/24')
gateway = d.get('gateway', None)
type = d.get('type', 'PRIVATE_VLAN')
dhcp = d.get('dhcp', True)
......
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