summaryrefslogtreecommitdiff
path: root/doc/api_samples
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2019-09-21 22:27:15 +0100
committerStephen Finucane <sfinucan@redhat.com>2019-11-18 16:25:47 +0000
commit1b71252a5fca825ef8d6889b431a3cf7932d6e03 (patch)
tree792acb1fdae11608ebb4934ebd546778bdedcdea /doc/api_samples
parent3776e97f122494152093bf3e391da209e9bb0bf2 (diff)
downloadnova-1b71252a5fca825ef8d6889b431a3cf7932d6e03.tar.gz
Remove (most) '/os-networks' REST APIs
Drop support for most of the 'os-networks' REST APIs excluding those that proxy through to neutron. This API now returns a 410 response for the non-proxy routes. Unit tests are removed for removed APIs and the functional API sample tests are just asserting the 410 response now same. The latter are also expanded to cover APIs that weren't previously tested. The API sample docs are left intact since the API reference still builds from those and can be considered more or less branchless, so people looking at the API reference can apply it to older deployments of nova before these APIs were removed. Note: yes, the API samples are correct. It really is a useless API when used with neutron. Change-Id: I68bfa77a520382317fc490a4f6c12dd62fc6dcda Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'doc/api_samples')
-rw-r--r--doc/api_samples/os-networks/network-show-resp.json46
-rw-r--r--doc/api_samples/os-networks/networks-list-resp.json74
2 files changed, 43 insertions, 77 deletions
diff --git a/doc/api_samples/os-networks/network-show-resp.json b/doc/api_samples/os-networks/network-show-resp.json
index 78b3495017..d6d12e4193 100644
--- a/doc/api_samples/os-networks/network-show-resp.json
+++ b/doc/api_samples/os-networks/network-show-resp.json
@@ -1,36 +1,36 @@
{
"network": {
- "bridge": "br100",
- "bridge_interface": "eth0",
- "broadcast": "10.0.0.7",
- "cidr": "10.0.0.0/29",
+ "bridge": null,
+ "bridge_interface": null,
+ "broadcast": null,
+ "cidr": null,
"cidr_v6": null,
- "created_at": "2011-08-15T06:19:19.387525",
- "deleted": false,
+ "created_at": null,
+ "deleted": null,
"deleted_at": null,
- "dhcp_server": "10.0.0.1",
- "dhcp_start": "10.0.0.3",
+ "dhcp_server": null,
+ "dhcp_start": null,
"dns1": null,
"dns2": null,
- "enable_dhcp": true,
- "gateway": "10.0.0.1",
+ "enable_dhcp": null,
+ "gateway": null,
"gateway_v6": null,
- "host": "nsokolov-desktop",
+ "host": null,
"id": "20c8acc0-f747-4d71-a389-46d078ebf047",
- "injected": false,
- "label": "mynet_0",
+ "injected": null,
+ "label": "private",
"mtu": null,
- "multi_host": false,
- "netmask": "255.255.255.248",
+ "multi_host": null,
+ "netmask": null,
"netmask_v6": null,
"priority": null,
- "project_id": "6133f8b603924f45bc0c9e21f6df12fa",
+ "project_id": null,
"rxtx_base": null,
- "share_address": false,
- "updated_at": "2011-08-16T09:26:13.048257",
- "vlan": 100,
- "vpn_private_address": "10.0.0.2",
- "vpn_public_address": "127.0.0.1",
- "vpn_public_port": 1000
+ "share_address": null,
+ "updated_at": null,
+ "vlan": null,
+ "vpn_private_address": null,
+ "vpn_public_address": null,
+ "vpn_public_port": null
}
-} \ No newline at end of file
+}
diff --git a/doc/api_samples/os-networks/networks-list-resp.json b/doc/api_samples/os-networks/networks-list-resp.json
index 655fcaa8cc..886beb7170 100644
--- a/doc/api_samples/os-networks/networks-list-resp.json
+++ b/doc/api_samples/os-networks/networks-list-resp.json
@@ -1,72 +1,38 @@
{
"networks": [
{
- "bridge": "br100",
- "bridge_interface": "eth0",
- "broadcast": "10.0.0.7",
- "cidr": "10.0.0.0/29",
+ "bridge": null,
+ "bridge_interface": null,
+ "broadcast": null,
+ "cidr": null,
"cidr_v6": null,
- "created_at": "2011-08-15T06:19:19.387525",
- "deleted": false,
+ "created_at": null,
+ "deleted": null,
"deleted_at": null,
- "dhcp_server": "10.0.0.1",
- "dhcp_start": "10.0.0.3",
+ "dhcp_server": null,
+ "dhcp_start": null,
"dns1": null,
"dns2": null,
- "enable_dhcp": true,
- "gateway": "10.0.0.1",
- "gateway_v6": null,
- "host": "nsokolov-desktop",
- "id": "20c8acc0-f747-4d71-a389-46d078ebf047",
- "injected": false,
- "label": "mynet_0",
- "mtu": null,
- "multi_host": false,
- "netmask": "255.255.255.248",
- "netmask_v6": null,
- "priority": null,
- "project_id": "6133f8b603924f45bc0c9e21f6df12fa",
- "rxtx_base": null,
- "share_address": false,
- "updated_at": "2011-08-16T09:26:13.048257",
- "vlan": 100,
- "vpn_private_address": "10.0.0.2",
- "vpn_public_address": "127.0.0.1",
- "vpn_public_port": 1000
- },
- {
- "bridge": "br101",
- "bridge_interface": "eth0",
- "broadcast": "10.0.0.15",
- "cidr": "10.0.0.10/29",
- "cidr_v6": null,
- "created_at": "2011-08-15T06:19:19.885495",
- "deleted": false,
- "deleted_at": null,
- "dhcp_server": "10.0.0.9",
- "dhcp_start": "10.0.0.11",
- "dns1": null,
- "dns2": null,
- "enable_dhcp": true,
- "gateway": "10.0.0.9",
+ "enable_dhcp": null,
+ "gateway": null,
"gateway_v6": null,
"host": null,
- "id": "20c8acc0-f747-4d71-a389-46d078ebf000",
- "injected": false,
- "label": "mynet_1",
+ "id": "20c8acc0-f747-4d71-a389-46d078ebf047",
+ "injected": null,
+ "label": "private",
"mtu": null,
- "multi_host": false,
- "netmask": "255.255.255.248",
+ "multi_host": null,
+ "netmask": null,
"netmask_v6": null,
"priority": null,
"project_id": null,
"rxtx_base": null,
- "share_address": false,
+ "share_address": null,
"updated_at": null,
- "vlan": 101,
- "vpn_private_address": "10.0.0.10",
+ "vlan": null,
+ "vpn_private_address": null,
"vpn_public_address": null,
- "vpn_public_port": 1001
+ "vpn_public_port": null
}
]
-} \ No newline at end of file
+}