A library containing standardized trait strings. Used by placement service and clients to ensure consistency.
65a8daf8ff
Names of traits in placement are restricted to certain characters and lengths. Consumers (e.g. Nova virt driver implementations of update_provider_tree) may wish to generate such names dynamically based on inputs that don't necessarily know or follow those rules. Such consumers could use a convenient way to sanitize generated names such that they conform to what placement expects. This change set introduces a normalize_name method into the base os_traits namespace. It is functionally identical to ResourceClass.normalize_name: it converts and squashes any sequences of non-alphanumeric characters to an underscore, upcases, and prepends CUSTOM_. Change-Id: I0d83cb39abb417b337a3429d374e88942561d254 Related-Blueprint: update-provider-tree |
||
---|---|---|
doc/source | ||
os_traits | ||
releasenotes | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
os-traits
os-traits is a library containing standardized trait strings.
Traits are strings that represent a feature of some resource provider. This library contains the catalog of constants that have been standardized in the OpenStack community to refer to a particular hardware, virtualization, storage, network, or device trait.
- Free software: Apache license
- Documentation: https://docs.openstack.org/os-traits/latest/
- Source: http://git.openstack.org/cgit/openstack/os-traits
- Bugs: https://bugs.launchpad.net/os-traits