Merge "Fix the version attribute in network_list"

This commit is contained in:
Zuul 2018-03-12 07:30:28 +00:00 committed by Gerrit Code Review
commit 314b3a85da
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{
"subnet_id": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"port_id": "5be06e49-70dc-4984-94a2-1b946bb136fb",
"version": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"version": 4,
"ip_address": "30.30.30.10",
"net_id": "7e6b5e1b-9b44-4f55-b4e3-16a1ead98161"
}

View File

@ -1047,7 +1047,7 @@ class ContainersController(base.Controller):
'net_id': net_id,
'subnet_id': net_info.get("subnet_id"),
'port_id': net_info.get("port"),
'version': net_info.get("subnet_id"),
'version': net_info.get("version"),
'ip_address': net_info.get("addr")
})
return container_networks