Debian Codegraph @

neutron_lib/api/definitions/qos_bw_minimum_ingress.py

raw
1 # Copyright (c) 2018 Ericsson
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 qos as qos_apidef
16 from neutron_lib import constants
17 from neutron_lib.services.qos import constants as qos_constants
18
19
20 ALIAS = 'qos-bw-minimum-ingress'
21 IS_SHIM_EXTENSION = False
22 IS_STANDARD_ATTR_EXTENSION = False
23 NAME = 'Ingress direction for QoS minimum bandwidth rule'
24 DESCRIPTION = ("Allow to configure QoS minumum bandwidth rule with ingress "
25 "direction.")
26 UPDATED_TIMESTAMP = '2018-07-09T10:00:00-00:00'
27 RESOURCE_ATTRIBUTE_MAP = {}
28 SUB_RESOURCE_ATTRIBUTE_MAP = {
29 qos_apidef.MIN_BANDWIDTH_RULES: {
30 'parameters': {
31 qos_constants.DIRECTION: {
32 'allow_post': True, 'allow_put': True,
33 'is_visible': True, 'default': constants.EGRESS_DIRECTION,
34 'is_filter': True,
35 'is_sort_key': True,
36 'validate': {
37 'type:values': constants.VALID_DIRECTIONS
38 }
39 }
40 }
41 }
42 }
43
44 ACTION_MAP = {}
45 REQUIRED_EXTENSIONS = [qos_apidef.ALIAS]
46 OPTIONAL_EXTENSIONS = []
47 ACTION_STATUS = {}