| 1 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 2 |
# you may not use this file except in compliance with the License. |
| 3 |
# You may obtain 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, |
| 9 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 10 |
# implied. |
| 11 |
# See the License for the specific language governing permissions and |
| 12 |
# limitations under the License. |
| 13 |
|
| 14 |
from neutron_lib.api import converters |
| 15 |
from neutron_lib.api.definitions import network |
| 16 |
|
| 17 |
ALIAS = 'network_ha' |
| 18 |
IS_SHIM_EXTENSION = False |
| 19 |
IS_STANDARD_ATTR_EXTENSION = False |
| 20 |
NAME = 'Network HA creation flag' |
| 21 |
API_PREFIX = '' |
| 22 |
DESCRIPTION = 'Network high availability creation flag.' |
| 23 |
UPDATED_TIMESTAMP = '2023-04-27T10:00:00-00:00' |
| 24 |
RESOURCE_NAME = network.RESOURCE_NAME |
| 25 |
COLLECTION_NAME = network.COLLECTION_NAME |
| 26 |
HA = 'ha' |
| 27 |
RESOURCE_ATTRIBUTE_MAP = { |
| 28 |
COLLECTION_NAME: { |
| 29 |
HA: { |
| 30 |
'allow_post': True, |
| 31 |
'allow_put': False, |
| 32 |
'is_visible': False, |
| 33 |
'default': False, |
| 34 |
'convert_to': converters.convert_to_boolean, |
| 35 |
}, |
| 36 |
} |
| 37 |
} |
| 38 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 39 |
ACTION_MAP = {} |
| 40 |
REQUIRED_EXTENSIONS = [] |
| 41 |
OPTIONAL_EXTENSIONS = [] |
| 42 |
ACTION_STATUS = {} |