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:
parent
bab44b9e0d
commit
0857418241
|
@ -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": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue