Debian Codegraph @

neutron_lib/api/definitions/security_groups_normalized_cidr.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
14 ALIAS = 'security-groups-normalized-cidr'
15 IS_SHIM_EXTENSION = False
16 IS_STANDARD_ATTR_EXTENSION = False
17 NAME = 'Normalized CIDR field for security group rules'
18 DESCRIPTION = 'Add new field with normalized remote_ip_prefix cidr in SG rule'
19 UPDATED_TIMESTAMP = '2020-07-28T10:00:00-00:00'
20
21 RESOURCE_ATTRIBUTE_MAP = {
22 'security_group_rules': {
23 'normalized_cidr': {
24 'allow_post': False, 'allow_put': False,
25 'validate': {'type:subnet_or_none': None},
26 'is_visible': True,
27 'is_filter': True,
28 'is_sort_key': True},
29 }
30 }
31
32 SUB_RESOURCE_ATTRIBUTE_MAP = {
33 }
34
35 ACTION_MAP = {
36 }
37
38 ACTION_STATUS = {
39 }
40
41 REQUIRED_EXTENSIONS = [
42 'security-group'
43 ]
44
45 OPTIONAL_EXTENSIONS = [
46 ]