Use list of dict for ip_addresses field in metadata

There is nothing using CIDR notation in the metadata.
For consistency, it's better to use a list of dict with address/netmask.

Change-Id: I66a5cd523f42761d06f32949dfc02c202e31ba9f
This commit is contained in:
Mathieu Gagné 2018-07-05 17:56:37 -04:00
parent bab44b9e0d
commit 0857418241
1 changed files with 12 additions and 3 deletions

View File

@ -119,8 +119,14 @@ JSON Response::
"ip_address": "10.184.0.244",
"netmask": "255.255.240.0",
"ip_addresses": [
"10.184.0.244/20",
"10.184.0.245/20"
{
"address": "10.184.0.244",
"netmask": "255.255.240.0"
},
{
"address": "10.184.0.245",
"netmask": "255.255.240.0"
}
],
"services": [
{
@ -153,7 +159,10 @@ JSON Response::
"ip_address": "2001:db8::3257:9652",
"netmask": "ffff:ffff:ffff:ffff::",
"ip_addresses": [
"2001:db8::3257:9652/24"
{
"address": "2001:db8::3257:9652",
"netmask": "ffff:ffff:ffff:ffff::"
}
],
"services": [
{