| 1 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 2 |
# not use this file except in compliance with the License. You may obtain |
| 3 |
# a copy of the License at |
| 4 |
# |
| 5 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 6 |
# |
| 7 |
# Unless required by applicable law or agreed to in writing, software |
| 8 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 9 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 10 |
# License for the specific language governing permissions and limitations |
| 11 |
# under the License. |
| 12 |
|
| 13 |
from neutron_lib.api.definitions import floating_ip_port_forwarding |
| 14 |
from neutron_lib.api.definitions import l3 |
| 15 |
|
| 16 |
|
| 17 |
ALIAS = "expose-port-forwarding-in-fip" |
| 18 |
IS_SHIM_EXTENSION = False |
| 19 |
IS_STANDARD_ATTR_EXTENSION = False |
| 20 |
NAME = 'Expose Floating IP port forwardings' |
| 21 |
API_PREFIX = '' |
| 22 |
DESCRIPTION = 'Expose port forwarding fields in floating IP response' |
| 23 |
UPDATED_TIMESTAMP = '2018-06-28T16:00:00-00:00' |
| 24 |
RESOURCE_NAME = l3.FLOATINGIP |
| 25 |
COLLECTION_NAME = l3.FLOATINGIPS |
| 26 |
RESOURCE_ATTRIBUTE_MAP = { |
| 27 |
COLLECTION_NAME: { |
| 28 |
floating_ip_port_forwarding.COLLECTION_NAME: { |
| 29 |
'allow_post': False, |
| 30 |
'allow_put': False, |
| 31 |
'is_visible': True, |
| 32 |
'default': None |
| 33 |
} |
| 34 |
} |
| 35 |
} |
| 36 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 37 |
ACTION_MAP = {} |
| 38 |
REQUIRED_EXTENSIONS = [l3.ALIAS, floating_ip_port_forwarding.ALIAS] |
| 39 |
OPTIONAL_EXTENSIONS = [] |
| 40 |
ACTION_STATUS = {} |