| 1 |
# Copyright 2025 Samsung SDS. All Rights Reserved |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain 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, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 12 |
# implied. |
| 13 |
# See the License for the specific language governing permissions and |
| 14 |
# limitations under the License. |
| 15 |
|
| 16 |
from neutron_lib.api.definitions import network_ip_availability |
| 17 |
|
| 18 |
|
| 19 |
IP_AVAILABILITY_DETAILS = "ip_availability_details" |
| 20 |
|
| 21 |
ALIAS = 'network-ip-availability-details' |
| 22 |
IS_SHIM_EXTENSION = False |
| 23 |
IS_STANDARD_ATTR_EXTENSION = False |
| 24 |
NAME = 'Network IP Availability Details Extension' |
| 25 |
DESCRIPTION = ('Add ip_availability_details attribute to' |
| 26 |
' network-ip-availabilities resource.') |
| 27 |
UPDATED_TIMESTAMP = '2025-10-31T00:00:00-00:00' |
| 28 |
|
| 29 |
RESOURCE_ATTRIBUTE_MAP = { |
| 30 |
network_ip_availability.RESOURCE_PLURAL: { |
| 31 |
IP_AVAILABILITY_DETAILS: { |
| 32 |
'allow_post': False, 'allow_put': False, |
| 33 |
'is_visible': True |
| 34 |
} |
| 35 |
} |
| 36 |
} |
| 37 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 38 |
ACTION_MAP = {} |
| 39 |
REQUIRED_EXTENSIONS = [network_ip_availability.ALIAS] |
| 40 |
OPTIONAL_EXTENSIONS = [] |
| 41 |
ACTION_STATUS = {} |