Debian Codegraph @

neutron_lib/api/definitions/default_subnetpools.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 subnet as subnet_def
15 from neutron_lib import constants
16
17 USE_DEFAULT_SUBNETPOOL = 'use_default_subnetpool'
18
19 ALIAS = 'default-subnetpools'
20 IS_SHIM_EXTENSION = False
21 IS_STANDARD_ATTR_EXTENSION = False
22 NAME = 'Default Subnetpools'
23 API_PREFIX = ''
24 DESCRIPTION = 'Provides ability to mark and use a subnetpool as the default.'
25 UPDATED_TIMESTAMP = '2016-02-18T18:00:00-00:00'
26 RESOURCE_NAME = subnet_def.RESOURCE_NAME
27 COLLECTION_NAME = subnet_def.COLLECTION_NAME
28 RESOURCE_ATTRIBUTE_MAP = {
29 COLLECTION_NAME: {
30 USE_DEFAULT_SUBNETPOOL: {'allow_post': True,
31 'allow_put': False,
32 'default': False,
33 'convert_to': converters.convert_to_boolean,
34 'is_visible': False},
35 },
36 }
37 SUB_RESOURCE_ATTRIBUTE_MAP = {}
38 ACTION_MAP = {}
39 REQUIRED_EXTENSIONS = [constants.SUBNET_ALLOCATION_EXT_ALIAS]
40 OPTIONAL_EXTENSIONS = []
41 ACTION_STATUS = {}