a5147669f4
This patch port extended_ips/extended_ips_mac extension to V2.1 There are difference between V2 and V3 server show/index & server address index API response listed below- 'address' field of V2->V3 API response- "OS-EXT-IPS:type" -> "type" "OS-EXT-IPS-MAC:mac_addr" -> "mac_addr" Reverting those attribute same as V2 to work with V2.1 Closes-Bug: #1368495 Partially implements blueprint v2-on-v3-api Change-Id: I44902b0402115d1b6e833975e6c2f020ac5ab7c3
59 lines
1.9 KiB
JSON
59 lines
1.9 KiB
JSON
{
|
|
"servers": [
|
|
{
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"addr": "192.168.0.3",
|
|
"OS-EXT-IPS-MAC:mac_addr": "aa:bb:cc:dd:ee:ff",
|
|
"OS-EXT-IPS:type": "fixed",
|
|
"version": 4
|
|
}
|
|
]
|
|
},
|
|
"created": "2013-09-16T02:54:56Z",
|
|
"flavor": {
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"hostId": "cf5540800371e53064a60b36ff9d6d1d6a8719ffc870c63a270c6bee",
|
|
"id": "55f43fa2-dc7c-4c0b-b21a-76f9abe516f9",
|
|
"image": {
|
|
"id": "70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"key_name": null,
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/v3/servers/55f43fa2-dc7c-4c0b-b21a-76f9abe516f9",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/servers/55f43fa2-dc7c-4c0b-b21a-76f9abe516f9",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
},
|
|
"name": "new-server-test",
|
|
"OS-EXT-AZ:availability_zone": "nova",
|
|
"progress": 0,
|
|
"status": "ACTIVE",
|
|
"tenant_id": "openstack",
|
|
"updated": "2013-09-16T02:54:58Z",
|
|
"user_id": "fake"
|
|
}
|
|
]
|
|
}
|