” Module for BaseProvider class.
CIM Provider for LMI. It adds access to ProviderManager, configuration and blivet.Blivet instance.
In addition to CIM provider methods, this class and its subclasses can convert CIM InstanceName to Anaconda’s StorageDevice instance and a vice versa.
Initialize the provider. Store reference to blivet.Blivet. Store reference to StorageConfiguration. Register at given ProviderManager.
Implementation of basic associations. This method can be used by all subclasses, which implement association provider.
It has the same arguments as references() method of CIMProvider2, additional ‘first_class’ and ‘second_class’ should contain string with CIM class names of the associated classes.
All four association-related operations (Associators, AssociatorNames, References, ReferenceNames) are mapped to this method. This method is a python generator
Keyword arguments: env – Provider Environment (pycimmb.ProviderEnvironment) object_name – A pywbem.CIMInstanceName that defines the source
CIM Object whose associated Objects are to be returned.
The following diagram may be helpful in understanding the role, result_role, and result_class_name parameters. +————————+ +——————-+ | object_name.classname | | result_class_name | | ~~~~~~~~~~~~~~~~~~~~~ | | ~~~~~~~~~~~~~~~~~ | +————————+ +——————-+
+———————————–+ || [Association] model.classname | |object_name | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |+————–+ object_name.classname REF role | |
Possible Errors: CIM_ERR_ACCESS_DENIED CIM_ERR_NOT_SUPPORTED CIM_ERR_INVALID_NAMESPACE CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized
or otherwise incorrect parameters)
CIM_ERR_FAILED (some other unspecified error occurred)