Debian Codegraph @

neutron_lib/api/definitions/external_net.py

raw
1 # Copyright (c) 2013 OpenStack Foundation.
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 from neutron_lib.api import converters
17 from neutron_lib.api.definitions import network
18
19
20 # For backward compatibility the 'router' prefix is kept.
21 EXTERNAL = 'router:external'
22
23 ALIAS = 'external-net'
24 IS_SHIM_EXTENSION = False
25 IS_STANDARD_ATTR_EXTENSION = False
26 NAME = 'Neutron external network'
27 API_PREFIX = ''
28 DESCRIPTION = 'Adds external network attribute to network resource.'
29 UPDATED_TIMESTAMP = '2013-01-14T10:00:00-00:00'
30 RESOURCE_NAME = network.RESOURCE_NAME
31 COLLECTION_NAME = network.COLLECTION_NAME
32 RESOURCE_ATTRIBUTE_MAP = {
33 COLLECTION_NAME: {
34 EXTERNAL: {
35 'allow_post': True,
36 'allow_put': True,
37 'default': False,
38 'is_visible': True,
39 'is_filter': True,
40 'convert_to': converters.convert_to_boolean,
41 'enforce_policy': True,
42 'required_by_policy': True
43 }
44 }
45 }
46 SUB_RESOURCE_ATTRIBUTE_MAP = {}
47 ACTION_MAP = {}
48 REQUIRED_EXTENSIONS = []
49 OPTIONAL_EXTENSIONS = []
50 ACTION_STATUS = {}