murano/releasenotes/notes/metadata-aware-mixin-41777dd8d1802908.yaml
Alexander Tivelkov f258b577fb MetadataAware mixin added to Core Library
Added a mixin class 'MetadataAware' which contains logic to retrieve
metadata attributes from the object of class which inherits it and
from all objects owning this one. Metadata attrbiutes applied to
objects which are deeper in the stack ovewrite ones from objects which
are higher.

The mixin can also validate if the attribute may be applied to the
objects of the given resource type; the type is defined by its
overridable abstract method 'getResourceType'. This check uses
MetadefBrowser class to retrieve the meta definition namespaces of the
needed resource type.

Instance and CinderVolume classes now inherit this mixin.

Change-Id: I43a081fe2a88e666f61de04b8a2789e1b8e96e38
Targets-blueprint: metadata-assignment-and-propagation
2016-10-06 15:22:04 +03:00

5 lines
151 B
YAML

---
features:
- Added a MetadataAware mixin class capable to retrieve the metadata
attributes from the implementing objects and all its parents.