| 1 |
# Copyright (c) 2021 Cloudification GmbH. All rights reserved. |
| 2 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 3 |
# not use this file except in compliance with the License. You may obtain |
| 4 |
# a copy of the License at |
| 5 |
# |
| 6 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 |
# |
| 8 |
# Unless required by applicable law or agreed to in writing, software |
| 9 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 10 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 11 |
# License for the specific language governing permissions and limitations |
| 12 |
# under the License. |
| 13 |
|
| 14 |
from neutron_lib.api import converters |
| 15 |
from neutron_lib.api.definitions import bgpvpn |
| 16 |
from neutron_lib import constants |
| 17 |
|
| 18 |
|
| 19 |
ALIAS = 'rbac-bgpvpn' |
| 20 |
IS_SHIM_EXTENSION = False |
| 21 |
IS_STANDARD_ATTR_EXTENSION = False |
| 22 |
NAME = 'Add bgpvpn type to RBAC' |
| 23 |
DESCRIPTION = 'Add bgpvpn type to RBAC' |
| 24 |
UPDATED_TIMESTAMP = '2021-06-07T00:00:00-00:00' |
| 25 |
API_PREFIX = bgpvpn.API_PREFIX |
| 26 |
RESOURCE_NAME = bgpvpn.RESOURCE_NAME |
| 27 |
COLLECTION_NAME = bgpvpn.COLLECTION_NAME |
| 28 |
RESOURCE_ATTRIBUTE_MAP = { |
| 29 |
COLLECTION_NAME: { |
| 30 |
constants.SHARED: { |
| 31 |
'allow_post': False, |
| 32 |
'allow_put': False, |
| 33 |
'default': False, |
| 34 |
'convert_to': converters.convert_to_boolean, |
| 35 |
'is_visible': True, |
| 36 |
'is_filter': True, |
| 37 |
'is_sort_key': True, |
| 38 |
'enforce_policy': True |
| 39 |
} |
| 40 |
}, |
| 41 |
} |
| 42 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 43 |
ACTION_MAP = {} |
| 44 |
REQUIRED_EXTENSIONS = ['rbac-policies', bgpvpn.ALIAS] |
| 45 |
OPTIONAL_EXTENSIONS = [] |
| 46 |
ACTION_STATUS = {} |