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,
: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'