diff options
author | Mark Goddard <mark@stackhpc.com> | 2017-06-01 15:36:58 +0100 |
---|---|---|
committer | Mark Goddard <mark@stackhpc.com> | 2017-07-19 17:29:20 +0100 |
commit | 02fff930fbab4caaa1181da9ee0f70523fe8d7ca (patch) | |
tree | fdfbf6496e36b3e5d30ea603837a4e3d236879e7 /api-ref/source/samples | |
parent | d9983f1eecc47db7682f4faf4d885b8be87a494b (diff) | |
download | ironic-02fff930fbab4caaa1181da9ee0f70523fe8d7ca.tar.gz |
Expose ports' physical network attribute in API
In change Ib22753aa6ae0fedce7fb9ecf63f135fda0185c5b the port data model
was updated to include a physical_network field, but this was not
exposed to the user by the REST API. This change exposes the
physical_network field in the REST API.
The port CRUD notification object has been updated to include the
physical_network field.
The API reference and user guide have been updated to include
information about the ports' physical network field.
The API microversion has been bumped to 1.34. During a rolling upgrade
from Ocata when the API service is pinned, the port physical network
field is hidden from API responses, and API requests including the field
are rejected.
Change-Id: I7023a1d6618608c867c31396fa677d3016ca493e
Partial-Bug: #1666009
Diffstat (limited to 'api-ref/source/samples')
6 files changed, 7 insertions, 1 deletions
diff --git a/api-ref/source/samples/node-port-detail-response.json b/api-ref/source/samples/node-port-detail-response.json index 1e5ea3405..e0f4292bd 100644 --- a/api-ref/source/samples/node-port-detail-response.json +++ b/api-ref/source/samples/node-port-detail-response.json @@ -21,6 +21,7 @@ "switch_info": "switch1" }, "node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d", + "physical_network": "physnet1", "portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a", "pxe_enabled": true, "updated_at": "2016-08-18T22:28:49.653974+00:00", diff --git a/api-ref/source/samples/port-create-request.json b/api-ref/source/samples/port-create-request.json index ef716a938..8018f8dec 100644 --- a/api-ref/source/samples/port-create-request.json +++ b/api-ref/source/samples/port-create-request.json @@ -6,5 +6,6 @@ "switch_id": "0a:1b:2c:3d:4e:5f", "port_id": "Ethernet3/1", "switch_info": "switch1" - } + }, + "physical_network": "physnet1" } diff --git a/api-ref/source/samples/port-create-response.json b/api-ref/source/samples/port-create-response.json index f527ec79e..ef88e965f 100644 --- a/api-ref/source/samples/port-create-response.json +++ b/api-ref/source/samples/port-create-response.json @@ -19,6 +19,7 @@ "switch_info": "switch1" }, "node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d", + "physical_network": "physnet1", "portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a", "pxe_enabled": true, "updated_at": null, diff --git a/api-ref/source/samples/port-list-detail-response.json b/api-ref/source/samples/port-list-detail-response.json index 08c421d50..aa99ef743 100644 --- a/api-ref/source/samples/port-list-detail-response.json +++ b/api-ref/source/samples/port-list-detail-response.json @@ -21,6 +21,7 @@ "switch_info": "switch1" }, "node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d", + "physical_network": "physnet1", "portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a", "pxe_enabled": true, "updated_at": null, diff --git a/api-ref/source/samples/port-update-response.json b/api-ref/source/samples/port-update-response.json index 49d9e0517..e0a1e0744 100644 --- a/api-ref/source/samples/port-update-response.json +++ b/api-ref/source/samples/port-update-response.json @@ -19,6 +19,7 @@ "switch_info": "switch1" }, "node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d", + "physical_network": "physnet1", "portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a", "pxe_enabled": true, "updated_at": "2016-08-18T22:28:49.653974+00:00", diff --git a/api-ref/source/samples/portgroup-port-detail-response.json b/api-ref/source/samples/portgroup-port-detail-response.json index 1e5ea3405..e0f4292bd 100644 --- a/api-ref/source/samples/portgroup-port-detail-response.json +++ b/api-ref/source/samples/portgroup-port-detail-response.json @@ -21,6 +21,7 @@ "switch_info": "switch1" }, "node_uuid": "6d85703a-565d-469a-96ce-30b6de53079d", + "physical_network": "physnet1", "portgroup_uuid": "e43c722c-248e-4c6e-8ce8-0d8ff129387a", "pxe_enabled": true, "updated_at": "2016-08-18T22:28:49.653974+00:00", |