Commit 523cedc8 authored by Dionysis Grigoropoulos's avatar Dionysis Grigoropoulos
Browse files

cyclades: Add shared field in the API for networks

Add a "shared" field in the API reply of networks to be compatible with
Neutron API. This field has the same value as the "public" field.
parent fd31bc0e
......@@ -187,6 +187,7 @@ def network_to_dict(network, detail=True):
d['created'] = api.utils.isoformat(network.created)
d['status'] = state
d['public'] = network.public
d['shared'] = network.public
d['router:external'] = network.external_router
d['admin_state_up'] = True
d['subnets'] = subnet_ids
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