A library containing standardized trait strings. Used by placement service and clients to ensure consistency.
Go to file
Eric Fried 65a8daf8ff normalize_name helper
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
2018-06-13 08:18:25 -05:00
doc/source Update Usage information 2018-01-31 17:41:33 -08:00
os_traits normalize_name helper 2018-06-13 08:18:25 -05:00
releasenotes Update reno for stable/queens 2018-01-24 18:02:38 +00:00
.gitignore Remove AUTHORS and ChangeLog 2017-07-04 12:39:39 +00:00
.gitreview update pep8/hacking and address failures 2017-03-02 11:37:02 -05:00
.testr.conf Fix testing with tox 2016-10-08 08:07:58 +00:00
CONTRIBUTING.rst Add code hosting URL 2018-01-30 09:41:13 -05:00
HACKING.rst Update the documentation urls 2017-09-06 14:56:01 +08:00
LICENSE Initial commit of os-capabilities library 2016-08-03 19:25:39 -04:00
MANIFEST.in Initial commit of os-capabilities library 2016-08-03 19:25:39 -04:00
README.rst Update the documentation urls 2017-09-06 14:56:01 +08:00
babel.cfg Initial commit of os-capabilities library 2016-08-03 19:25:39 -04:00
requirements.txt Updated from global requirements 2017-11-16 11:20:23 +00:00
setup.cfg Update the documentation urls 2017-09-06 14:56:01 +08:00
setup.py Updated from global requirements 2017-03-03 22:57:04 +00:00
test-requirements.txt Updated from global requirements 2018-03-15 07:45:25 +00:00
tox.ini doc: Remove cruft from conf.py 2017-08-23 09:46:37 +01:00

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.