
This extension adds the OS-EXT-IPS-MAC:mac_addr param so that users can associate the mac address to the ip of the server in one API call. Implement bp: os-ext-ips-mac-api-extension DocImpact Change-Id: I01d0b3aa804b5218853a4bb568c85e31b87d04e4 Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
57 lines
1.6 KiB
Smarty
57 lines
1.6 KiB
Smarty
{
|
|
"servers": [
|
|
{
|
|
"status": "ACTIVE",
|
|
"updated": "%(timestamp)s",
|
|
"user_id": "fake",
|
|
"addresses": {
|
|
"private": [
|
|
{
|
|
"addr": "%(ip)s",
|
|
"version": 4,
|
|
"OS-EXT-IPS-MAC:mac_addr": "%(mac_addr)s"
|
|
}
|
|
]
|
|
},
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/v2/openstack/servers/%(id)s",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "%(host)s/openstack/servers/%(id)s",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"created": "%(timestamp)s",
|
|
"name": "new-server-test",
|
|
"image": {
|
|
"id": "%(uuid)s",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/openstack/images/%(uuid)s",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"id": "%(uuid)s",
|
|
"accessIPv4": "",
|
|
"accessIPv6": "",
|
|
"tenant_id": "openstack",
|
|
"progress": 0,
|
|
"flavor": {
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "%(host)s/openstack/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
]
|
|
},
|
|
"hostId": "%(hostid)s",
|
|
"metadata": {
|
|
"My Server Name": "Apache1"
|
|
}
|
|
}]
|
|
}
|