64a0bcae5a
Now prov_mac_address is going to be dropped from bm_nodes table. This patch adjust api to the change. A user is expected to create a node without specifying prov_mac_address, then add an interface having the address to the node. However, for compatibility, a user still can specify prov_mac_address when create a node. In this case, an interface having prov_mac_address is automatically added to the node. In response body of create, index and show, "prov_mac_address" field no longer exists since they are showed as a member of "interfaces" fileld. DocImpact Change-Id: I6653829364b0a641442d45e766493180d6f2a880
23 lines
562 B
JSON
23 lines
562 B
JSON
{
|
|
"nodes": [
|
|
{
|
|
"cpus": 8,
|
|
"id": 1,
|
|
"instance_uuid": null,
|
|
"interfaces": [
|
|
{
|
|
"address": "aa:aa:aa:aa:aa:aa",
|
|
"datapath_id": null,
|
|
"id": 1,
|
|
"port_no": null
|
|
}
|
|
],
|
|
"local_gb": 128,
|
|
"memory_mb": 8192,
|
|
"pm_address": "10.1.2.3",
|
|
"pm_user": "pm_user",
|
|
"service_host": "host",
|
|
"terminal_port": 8000
|
|
}
|
|
]
|
|
} |