| 1 |
# Copyright 2018 Ericsson |
| 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 implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
# trait prefixes to be used after CUSTOM_ |
| 16 |
TRAIT_PREFIX_VNIC_TYPE = 'VNIC_TYPE_' |
| 17 |
TRAIT_PREFIX_PHYSNET = 'PHYSNET_' |
| 18 |
|
| 19 |
# Optionally reported inventory parameters. Mandatory parameters like 'total' |
| 20 |
# are left out intentionally. See also: |
| 21 |
# https://docs.openstack.org/api-ref/placement |
| 22 |
# /#update-resource-provider-inventory |
| 23 |
INVENTORY_OPTIONS = { |
| 24 |
'allocation_ratio', |
| 25 |
'max_unit', |
| 26 |
'min_unit', |
| 27 |
'reserved', |
| 28 |
'step_size', |
| 29 |
} |
| 30 |
|
| 31 |
# Tunnelled networks resource provider default name. |
| 32 |
RP_TUNNELLED = 'rp_tunnelled' |
| 33 |
TRAIT_NETWORK_TUNNEL = 'CUSTOM_NETWORK_TUNNEL_PROVIDER' |
| 34 |
|
| 35 |
# Port allocation key, stored in the port "binding:profile" dictionary. |
| 36 |
ALLOCATION = 'allocation' |