| 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 |
from neutron_lib.api.definitions import l3 |
| 14 |
from neutron_lib import constants |
| 15 |
|
| 16 |
|
| 17 |
FLAVOR_ID = 'flavor_id' |
| 18 |
|
| 19 |
ALIAS = 'l3-flavors' |
| 20 |
IS_SHIM_EXTENSION = False |
| 21 |
IS_STANDARD_ATTR_EXTENSION = False |
| 22 |
NAME = 'Router Flavor Extension' |
| 23 |
API_PREFIX = '' |
| 24 |
DESCRIPTION = 'Flavor support for routers.' |
| 25 |
UPDATED_TIMESTAMP = '2016-05-17T00:00:00-00:00' |
| 26 |
RESOURCE_NAME = l3.ROUTER |
| 27 |
COLLECTION_NAME = l3.ROUTERS |
| 28 |
RESOURCE_ATTRIBUTE_MAP = { |
| 29 |
COLLECTION_NAME: { |
| 30 |
FLAVOR_ID: { |
| 31 |
'allow_post': True, 'allow_put': False, |
| 32 |
'default': constants.ATTR_NOT_SPECIFIED, |
| 33 |
'is_sort_key': True, |
| 34 |
'is_visible': True, 'enforce_policy': True |
| 35 |
} |
| 36 |
} |
| 37 |
} |
| 38 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 39 |
ACTION_MAP = {} |
| 40 |
REQUIRED_EXTENSIONS = ['flavors', l3.ALIAS] |
| 41 |
OPTIONAL_EXTENSIONS = [] |
| 42 |
ACTION_STATUS = {} |