Debian Codegraph @

neutron_lib/api/definitions/network_mtu.py

raw
1 # All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14
15 from neutron_lib.api.definitions import network
16
17
18 MTU = 'mtu'
19
20 # The alias of the extension.
21 ALIAS = 'net-mtu'
22
23 # Whether or not this extension is simply signaling behavior to the user
24 # or it actively modifies the attribute map.
25 IS_SHIM_EXTENSION = False
26
27 # Whether the extension is marking the adoption of standardattr model for
28 # legacy resources, or introducing new standardattr attributes. False or
29 # None if the standardattr model is adopted since the introduction of
30 # resource extension.
31 # If this is True, the alias for the extension should be prefixed with
32 # 'standard-attr-'.
33 IS_STANDARD_ATTR_EXTENSION = False
34
35 # The name of the extension.
36 NAME = 'Network MTU'
37
38 # A prefix for API resources. An empty prefix means that the API is going
39 # to be exposed at the v2/ level as any other core resource.
40 API_PREFIX = ''
41
42 # The description of the extension.
43 DESCRIPTION = "Provides MTU attribute for a network resource."
44
45 # A timestamp of when the extension was introduced.
46 UPDATED_TIMESTAMP = "2015-03-25T10:00:00-00:00"
47
48
49 RESOURCE_ATTRIBUTE_MAP = {
50 network.COLLECTION_NAME: {
51 MTU: {'allow_post': False, 'allow_put': False,
52 'is_visible': True, 'is_filter': True, 'is_sort_key': True},
53 },
54 }
55
56 # The subresource attribute map for the extension. It adds child resources
57 # to main extension's resource. The subresource map must have a parent and
58 # a parameters entry. If an extension does not need such a map, None can
59 # be specified (mandatory).
60 SUB_RESOURCE_ATTRIBUTE_MAP = {}
61
62 # The action map: it associates verbs with methods to be performed on
63 # the API resource.
64 ACTION_MAP = {}
65
66 # The action status.
67 ACTION_STATUS = {
68 }
69
70 # The list of required extensions.
71 REQUIRED_EXTENSIONS = []
72
73 # The list of optional extensions.
74 OPTIONAL_EXTENSIONS = []