f258b577fb
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
5 lines
151 B
YAML
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.
|