Debian Codegraph @

neutron_lib/api/definitions/subnet_onboard.py

raw
1 # (c) Copyright 2016 Hewlett Packard Enterprise Development LP
2 #
3 # All Rights Reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
15 # under the License.
16
17 from neutron_lib.api.definitions import subnetpool as subnetpool_def
18 import neutron_lib.constants
19
20 ALIAS = "subnet_onboard"
21 IS_SHIM_EXTENSION = False
22 IS_STANDARD_ATTR_EXTENSION = False
23 NAME = "Subnet Onboard"
24 DESCRIPTION = "Provides support for onboarding subnets into subnet pools"
25 UPDATED_TIMESTAMP = "2018-12-18T09:00:00-00:00"
26
27
28 ONBOARD_SUBNETS = 'onboard_network_subnets'
29
30
31 RESOURCE_ATTRIBUTE_MAP = {
32 subnetpool_def.COLLECTION_NAME: {
33 }
34 }
35
36 # The subresource attribute map for the extension. This extension has only
37 # top level resources, not child resources, so this is set to an empty dict.
38 SUB_RESOURCE_ATTRIBUTE_MAP = {
39 }
40
41 # The action map.
42 ACTION_MAP = {
43 subnetpool_def.RESOURCE_NAME: {
44 ONBOARD_SUBNETS: 'PUT'
45 }
46 }
47
48 # The action status.
49 ACTION_STATUS = {
50 }
51
52 # The list of required extensions.
53 REQUIRED_EXTENSIONS = [neutron_lib.constants.SUBNET_ALLOCATION_EXT_ALIAS]
54
55 # The list of optional extensions.
56 OPTIONAL_EXTENSIONS = [
57 ]