Debian Codegraph @

neutron_lib/api/definitions/subnetpool_prefix_ops.py

raw
1 # (c) Copyright 2019 SUSE LLC
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 from neutron_lib import constants
19
20 ALIAS = "subnetpool-prefix-ops"
21 IS_SHIM_EXTENSION = False
22 IS_STANDARD_ATTR_EXTENSION = False
23 NAME = "Subnet Pool Prefix Operations"
24 DESCRIPTION = "Provides support for adjusting the prefix list of subnet pools"
25 UPDATED_TIMESTAMP = "2019-02-08T10:00:00-00:00"
26
27
28 RESOURCE_ATTRIBUTE_MAP = {
29 }
30
31 # The subresource attribute map for the extension. This extension has only
32 # top level resources, not child resources, so this is set to an empty dict.
33 SUB_RESOURCE_ATTRIBUTE_MAP = {
34 }
35
36 # The action map.
37 ACTION_MAP = {
38 subnetpool_def.RESOURCE_NAME: {
39 'add_prefixes': 'PUT',
40 'remove_prefixes': 'PUT'
41 }
42 }
43
44 # The action status.
45 ACTION_STATUS = {
46 }
47
48 # The list of required extensions.
49 REQUIRED_EXTENSIONS = [constants.SUBNET_ALLOCATION_EXT_ALIAS]
50
51 # The list of optional extensions.
52 OPTIONAL_EXTENSIONS = [
53 ]