| 1 |
# Copyright 2013 VMware, Inc. 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 l3 |
| 16 |
|
| 17 |
|
| 18 |
SERVICE_TYPE_ID = 'service_type_id' |
| 19 |
|
| 20 |
ALIAS = 'router-service-type' |
| 21 |
IS_SHIM_EXTENSION = False |
| 22 |
IS_STANDARD_ATTR_EXTENSION = False |
| 23 |
NAME = 'Router Service Type' |
| 24 |
API_PREFIX = '' |
| 25 |
DESCRIPTION = 'Provides router service type' |
| 26 |
UPDATED_TIMESTAMP = '2013-01-29T00:00:00-00:00' |
| 27 |
RESOURCE_ATTRIBUTE_MAP = { |
| 28 |
l3.ROUTERS: { |
| 29 |
SERVICE_TYPE_ID: { |
| 30 |
'allow_post': True, |
| 31 |
'allow_put': False, |
| 32 |
'validate': { |
| 33 |
'type:uuid_or_none': None |
| 34 |
}, |
| 35 |
'default': None, |
| 36 |
'is_visible': True}, |
| 37 |
} |
| 38 |
} |
| 39 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 40 |
ACTION_MAP = {} |
| 41 |
REQUIRED_EXTENSIONS = [l3.ALIAS] |
| 42 |
OPTIONAL_EXTENSIONS = [] |
| 43 |
ACTION_STATUS = {} |