| 1 |
# Copyright (c) 2016 Hewlett Packard Enterprise Development Company, L.P. |
| 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 port |
| 16 |
|
| 17 |
|
| 18 |
IP_ALLOCATION = 'ip_allocation' |
| 19 |
IP_ALLOCATION_IMMEDIATE = 'immediate' |
| 20 |
IP_ALLOCATION_DEFERRED = 'deferred' |
| 21 |
IP_ALLOCATION_NONE = 'none' |
| 22 |
|
| 23 |
ALIAS = 'ip_allocation' |
| 24 |
IS_SHIM_EXTENSION = False |
| 25 |
IS_STANDARD_ATTR_EXTENSION = False |
| 26 |
NAME = 'IP Allocation' |
| 27 |
API_PREFIX = '' |
| 28 |
DESCRIPTION = 'IP allocation extension.' |
| 29 |
UPDATED_TIMESTAMP = '2016-06-10T23:00:00-00:00' |
| 30 |
RESOURCE_NAME = port.RESOURCE_NAME |
| 31 |
COLLECTION_NAME = port.COLLECTION_NAME |
| 32 |
RESOURCE_ATTRIBUTE_MAP = { |
| 33 |
COLLECTION_NAME: { |
| 34 |
IP_ALLOCATION: { |
| 35 |
'allow_post': False, |
| 36 |
'allow_put': False, |
| 37 |
'is_filter': True, |
| 38 |
'is_sort_key': True, |
| 39 |
'is_visible': True |
| 40 |
} |
| 41 |
} |
| 42 |
} |
| 43 |
SUB_RESOURCE_ATTRIBUTE_MAP = {} |
| 44 |
ACTION_MAP = {} |
| 45 |
REQUIRED_EXTENSIONS = [] |
| 46 |
OPTIONAL_EXTENSIONS = [] |
| 47 |
ACTION_STATUS = {} |