e863e8f1cd
This patch introduces a new API extension for exposing port_forwardings field in Floatingip response. This extension requires the router and port_forwarding service plugins. This change implements the effect of port forwarding on the existing Floatingip API, as specified in [1] [1] https://specs.openstack.org/openstack/neutron-specs/rocky/port-forwarding.html Change-Id: Ia35b57fb26a0cf277f31816e90d24f91ca1f63d1 Partial-Bug: #1491317
85 lines
3.3 KiB
JSON
85 lines
3.3 KiB
JSON
{
|
|
"floatingips": [
|
|
{
|
|
"router_id": "d23abc8d-2991-4a55-ba98-2aaea84cc72f",
|
|
"description": "for test",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip",
|
|
"created_at": "2016-12-21T10:55:50Z",
|
|
"updated_at": "2016-12-21T10:55:53Z",
|
|
"revision_number": 1,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": "10.0.0.3",
|
|
"floating_ip_address": "172.24.4.228",
|
|
"port_id": "ce705c24-c1ef-408a-bda3-7bbd946164ab",
|
|
"id": "2f245a7b-796b-4f26-9cf9-9e82d248fda7",
|
|
"status": "ACTIVE",
|
|
"port_details": {
|
|
"status": "ACTIVE",
|
|
"name": "",
|
|
"admin_state_up": true,
|
|
"network_id": "02dd8479-ef26-4398-a102-d19d0a7b3a1f",
|
|
"device_owner": "compute:nova",
|
|
"mac_address": "fa:16:3e:b1:3b:30",
|
|
"device_id": "8e3941b4-a6e9-499f-a1ac-2a4662025cba"
|
|
},
|
|
"tags": ["tag1,tag2"],
|
|
"port_forwardings": []
|
|
},
|
|
{
|
|
"router_id": null,
|
|
"description": "for test",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip2",
|
|
"created_at": "2016-12-21T11:55:50Z",
|
|
"updated_at": "2016-12-21T11:55:53Z",
|
|
"revision_number": 2,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "172.24.4.227",
|
|
"port_id": null,
|
|
"id": "61cea855-49cb-4846-997d-801b70c71bdd",
|
|
"status": "DOWN",
|
|
"port_details": null,
|
|
"tags": ["tag1,tag2"],
|
|
"port_forwardings": []
|
|
},
|
|
{
|
|
"router_id": "0303bf18-2c52-479c-bd68-e0ad712a1639",
|
|
"description": "for test with port forwarding",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip3",
|
|
"created_at": "2018-06-15T02:12:48Z",
|
|
"updated_at": "2018-06-15T02:12:57Z",
|
|
"revision_number": 1,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "172.24.4.42",
|
|
"port_id": null,
|
|
"id": "898b198e-49f7-47d6-a7e1-53f626a548e6",
|
|
"status": "ACTIVE",
|
|
"tags": [],
|
|
"port_forwardings": [
|
|
{
|
|
"protocol": "tcp",
|
|
"internal_ip_address": "10.0.0.19",
|
|
"internal_port": 25,
|
|
"external_port": 2225
|
|
},
|
|
{
|
|
"protocol": "tcp",
|
|
"internal_ip_address": "10.0.0.18",
|
|
"internal_port": 16666,
|
|
"external_port": 8786
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|