Files
neutron-lib/neutron_lib/api/definitions/fip_pf_detail.py
zhouhenglc 9c90f78a8b Add floating-ip-port-forwarding-detail shim extension
if we list floating ip and want to operate a port forwarding, we cannot
call the update 'port forwarding' api, because we don't know the port
forwarding id.
The reason for exposing 'internal_port_id' is also to find the
associated port as soon as possible, so as to facilitate users to obtain
vm information and decide whether to update this port forwarding.
this patch adds the port forwarding returned contents: 'id' and
'internal_port_id' when list floatingip.

Partial-bug: #1971646

Change-Id: I34aa6948fccc669fc729d032b540bd1aa0c17ce9
2022-08-08 07:33:47 +00:00

33 lines
1.1 KiB
Python

# Copyright (c) 2022 Inspur, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
NAME = 'Floating IP port forwarding detail'
ALIAS = 'floating-ip-port-forwarding-detail'
DESCRIPTION = (
"Allow list floating ip return more port forwarding data, include"
"'id' and 'internal_port_id'")
UPDATED_TIMESTAMP = "2022-05-06T10:00:00-00:00"
RESOURCE_ATTRIBUTE_MAP = {}
IS_SHIM_EXTENSION = True
IS_STANDARD_ATTR_EXTENSION = False
SUB_RESOURCE_ATTRIBUTE_MAP = {}
ACTION_MAP = {}
REQUIRED_EXTENSIONS = []
OPTIONAL_EXTENSIONS = []
ACTION_STATUS = {}