From fe653c2047b268797b83e2be198fcd5ca8e7b8b3 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Tue, 28 Jan 2020 10:40:09 +0100 Subject: [PATCH] [Api-Ref][Docs] Change dns_assignment parameter to be list In api-ref dns_assignment parameter was listed as dict but in fact it is list of dicts. This patch fixes api-ref to reflect what is actually in neutron's code. Change-Id: I898633cd360cd9619f5e9a87acb718e01e99b647 Closes-Bug: #1861027 --- .../ports/port-bind-create-response.json | 12 ++++++---- .../ports/port-bind-show-response.json | 12 ++++++---- .../ports/port-bind-update-response.json | 12 ++++++---- .../samples/ports/port-create-response.json | 12 ++++++---- .../v2/samples/ports/port-show-response.json | 12 ++++++---- .../samples/ports/port-update-response.json | 12 ++++++---- .../ports/ports-bind-list-response.json | 24 +++++++++++-------- .../ports/ports-bulk-create-response.json | 2 +- .../v2/samples/ports/ports-list-response.json | 24 +++++++++++-------- 9 files changed, 71 insertions(+), 51 deletions(-) diff --git a/api-ref/source/v2/samples/ports/port-bind-create-response.json b/api-ref/source/v2/samples/ports/port-bind-create-response.json index 8a3b55a28..5b6e4bd0a 100644 --- a/api-ref/source/v2/samples/ports/port-bind-create-response.json +++ b/api-ref/source/v2/samples/ports/port-bind-create-response.json @@ -25,11 +25,13 @@ "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", "device_owner": "baremetal:none", - "dns_assignment": { - "hostname": "myport", - "ip_address": "10.0.0.2", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "10.0.0.2", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/port-bind-show-response.json b/api-ref/source/v2/samples/ports/port-bind-show-response.json index c2ce9b846..715d2b187 100644 --- a/api-ref/source/v2/samples/ports/port-bind-show-response.json +++ b/api-ref/source/v2/samples/ports/port-bind-show-response.json @@ -15,11 +15,13 @@ "description": "", "device_id": "5e3898d7-11be-483e-9732-b2f5eccd2b2e", "device_owner": "network:router_interface", - "dns_assignment": { - "hostname": "myport", - "ip_address": "10.0.0.1", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "10.0.0.1", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/port-bind-update-response.json b/api-ref/source/v2/samples/ports/port-bind-update-response.json index bb94aa6f9..6f90743a2 100644 --- a/api-ref/source/v2/samples/ports/port-bind-update-response.json +++ b/api-ref/source/v2/samples/ports/port-bind-update-response.json @@ -12,11 +12,13 @@ "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", "device_owner": "compute:nova", - "dns_assignment": { - "hostname": "myport", - "ip_address": "20.20.0.4", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "20.20.0.4", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/port-create-response.json b/api-ref/source/v2/samples/ports/port-create-response.json index ea2d62cc9..11f4a813e 100644 --- a/api-ref/source/v2/samples/ports/port-create-response.json +++ b/api-ref/source/v2/samples/ports/port-create-response.json @@ -12,11 +12,13 @@ "description": "", "device_id": "", "device_owner": "", - "dns_assignment": { - "hostname": "myport", - "ip_address": "10.0.0.2", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "10.0.0.2", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/port-show-response.json b/api-ref/source/v2/samples/ports/port-show-response.json index 1b05171d4..ae033ef26 100644 --- a/api-ref/source/v2/samples/ports/port-show-response.json +++ b/api-ref/source/v2/samples/ports/port-show-response.json @@ -7,11 +7,13 @@ "description": "", "device_id": "5e3898d7-11be-483e-9732-b2f5eccd2b2e", "device_owner": "network:router_interface", - "dns_assignment": { - "hostname": "myport", - "ip_address": "10.0.0.1", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "10.0.0.1", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/port-update-response.json b/api-ref/source/v2/samples/ports/port-update-response.json index b52032396..9d9ca091f 100644 --- a/api-ref/source/v2/samples/ports/port-update-response.json +++ b/api-ref/source/v2/samples/ports/port-update-response.json @@ -12,11 +12,13 @@ "description": "", "device_id": "d90a13da-be41-461f-9f99-1dbcf438fdf2", "device_owner": "compute:nova", - "dns_assignment": { - "hostname": "myport", - "ip_address": "20.20.0.4", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "20.20.0.4", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/ports-bind-list-response.json b/api-ref/source/v2/samples/ports/ports-bind-list-response.json index 5f9993d36..4d1dd6c61 100644 --- a/api-ref/source/v2/samples/ports/ports-bind-list-response.json +++ b/api-ref/source/v2/samples/ports/ports-bind-list-response.json @@ -16,11 +16,13 @@ "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", "device_owner": "network:router_gateway", - "dns_assignment": { - "hostname": "myport", - "ip_address": "172.24.4.2", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "172.24.4.2", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [], @@ -68,11 +70,13 @@ "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", "device_owner": "network:router_interface", - "dns_assignment": { - "hostname": "myport2", - "ip_address": "10.0.0.1", - "fqdn": "myport2.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport2", + "ip_address": "10.0.0.1", + "fqdn": "myport2.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport2", "extra_dhcp_opts": [], diff --git a/api-ref/source/v2/samples/ports/ports-bulk-create-response.json b/api-ref/source/v2/samples/ports/ports-bulk-create-response.json index 1f0ad9acb..417122e82 100644 --- a/api-ref/source/v2/samples/ports/ports-bulk-create-response.json +++ b/api-ref/source/v2/samples/ports/ports-bulk-create-response.json @@ -50,7 +50,7 @@ "description": "", "device_id": "", "device_owner": "", - "dns_assignment": {}, + "dns_assignment": [], "dns_domain": "", "dns_name": "", "extra_dhcp_opts": [ diff --git a/api-ref/source/v2/samples/ports/ports-list-response.json b/api-ref/source/v2/samples/ports/ports-list-response.json index 824af849c..602f1aef9 100644 --- a/api-ref/source/v2/samples/ports/ports-list-response.json +++ b/api-ref/source/v2/samples/ports/ports-list-response.json @@ -8,11 +8,13 @@ "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", "device_owner": "network:router_gateway", - "dns_assignment": { - "hostname": "myport", - "ip_address": "172.24.4.2", - "fqdn": "myport.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport", + "ip_address": "172.24.4.2", + "fqdn": "myport.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport", "extra_dhcp_opts": [ @@ -53,11 +55,13 @@ "description": "", "device_id": "9ae135f4-b6e0-4dad-9e91-3c223e385824", "device_owner": "network:router_interface", - "dns_assignment": { - "hostname": "myport2", - "ip_address": "10.0.0.1", - "fqdn": "myport2.my-domain.org" - }, + "dns_assignment": [ + { + "hostname": "myport2", + "ip_address": "10.0.0.1", + "fqdn": "myport2.my-domain.org" + } + ], "dns_domain": "my-domain.org.", "dns_name": "myport2", "extra_dhcp_opts": [