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
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"server": {
|
|
"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-11-25T03:45:54Z",
|
|
"flavor": {
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"hostId": "b7e88944272df30c113572778bcf5527f02e9c2a745221214536c1a2",
|
|
"id": "9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"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/9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/servers/9dafa6bc-7a9f-45b2-8177-11800ceb7224",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
},
|
|
"name": "new-server-test",
|
|
"os-pci:pci_devices": [
|
|
{
|
|
"id": 1
|
|
}
|
|
],
|
|
"progress": 0,
|
|
"status": "ACTIVE",
|
|
"tenant_id": "openstack",
|
|
"updated": "2013-11-25T03:45:54Z",
|
|
"user_id": "fake"
|
|
}
|
|
} |