Debian Codegraph @

neutron_lib/api/definitions/uplink_status_propagation.py

raw
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 import converters
14 from neutron_lib.api.definitions import port as port_def
15
16 PROPAGATE_UPLINK_STATUS = 'propagate_uplink_status'
17
18 ALIAS = 'uplink-status-propagation'
19 IS_SHIM_EXTENSION = False
20 IS_STANDARD_ATTR_EXTENSION = False
21 NAME = 'Uplink status propagation extension'
22 API_PREFIX = ''
23 DESCRIPTION = 'Provides ability to propagate port uplink status.'
24 UPDATED_TIMESTAMP = '2018-05-31T18:00:00-00:00'
25 RESOURCE_NAME = port_def.RESOURCE_NAME
26 COLLECTION_NAME = port_def.COLLECTION_NAME
27 RESOURCE_ATTRIBUTE_MAP = {
28 COLLECTION_NAME: {
29 PROPAGATE_UPLINK_STATUS: {'allow_post': True,
30 'allow_put': False,
31 'default': True,
32 'convert_to': converters.convert_to_boolean,
33 'is_visible': True},
34 },
35 }
36 SUB_RESOURCE_ATTRIBUTE_MAP = {}
37 ACTION_MAP = {}
38 REQUIRED_EXTENSIONS = []
39 OPTIONAL_EXTENSIONS = []
40 ACTION_STATUS = {}