Debian Codegraph @

neutron_lib/api/definitions/l3_ext_ndp_proxy.py

raw
1 # Copyright (c) 2020 Troila.
2 # All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 from neutron_lib.api import converters
17 from neutron_lib.api.definitions import l3
18 from neutron_lib.api.definitions import l3_ext_gw_mode
19 from neutron_lib import constants
20
21
22 ALIAS = 'l3-ext-ndp-proxy'
23 IS_SHIM_EXTENSION = False
24 IS_STANDARD_ATTR_EXTENSION = False
25 NAME = 'Router support to enable NDP proxy'
26 API_PREFIX = ''
27 DESCRIPTION = 'Router extension to enable ndp proxy'
28 UPDATED_TIMESTAMP = '2020-08-25T00:00:00-00:00'
29 RESOURCE_NAME = l3.ROUTER
30 COLLECTION_NAME = l3.ROUTERS
31 ENABLE_NDP_PROXY = 'enable_ndp_proxy'
32 RESOURCE_ATTRIBUTE_MAP = {
33 COLLECTION_NAME: {
34 ENABLE_NDP_PROXY: {
35 'allow_post': True,
36 'allow_put': True,
37 'convert_to': converters.convert_to_boolean_if_not_none,
38 'default': constants.ATTR_NOT_SPECIFIED,
39 'is_visible': True,
40 'is_filter': True
41 }
42 }
43 }
44 SUB_RESOURCE_ATTRIBUTE_MAP = {}
45 ACTION_MAP = {}
46 REQUIRED_EXTENSIONS = [l3.ALIAS, l3_ext_gw_mode.ALIAS]
47 OPTIONAL_EXTENSIONS = []
48 ACTION_STATUS = {}