Commit 1d5653d9 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Rename "network" to "uuid" in server create w. net

parent f3740b99
......@@ -430,8 +430,8 @@ class server_create(_init_cyclades, _optional_json, _server_wait):
networks = []
else:
networks = [dict(uuid=netid) for netid in (
(self['network_id'] or []) + (self['network_id_and_ip'] or [])
)] or None
self['network_id'] or [])] + (self['network_id_and_ip'] or [])
networks = networks or None
servers = [dict(
name='%s%s' % (prefix, i if size > 1 else ''),
flavor_id=flavor_id,
......
......@@ -130,8 +130,8 @@ class ComputeClient(ComputeRestClient):
:param networks: (list of dicts) Networks to connect to, list this:
"networks": [
{"network": <network_uuid>},
{"network": <network_uuid>, "fixed_ip": address},
{"uuid": <network_uuid>},
{"uuid": <network_uuid>, "fixed_ip": address},
{"port": <port_id>}, ...]
ATTENTION: Empty list is different to None. None means ' do not
mention it', empty list means 'automatically get an ip'
......
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