Utilities for NetApp drivers.
This module contains common utilities to be used by one or more NetApp drivers to achieve the desired functionality.
Bases: object
Bases: object
OS/distribution, release, and version.
NetApp uses these fields as content for EMS log entry.
Ensure that the flags we care about are set.
Invalidate QOS spec if both legacy and non-legacy info is present.
Return legacy qos policy information if present in extra specs.
Build the regex for filtering pools by name
Parameters: | configuration – The volume driver configuration |
---|---|
Raises InvalidConfigurationValue: | |
if configured regex pattern is invalid | |
Returns: | A compiled regex for filtering pool names |
Return the name of backend QOS policy group based on its volume id.
Return the name of a QOS policy group given qos policy group info.
Given a volume type, return the associated Cinder QoS spec.
Given a volume, return information for QOS provisioning.
Provides extra specs associated with volume.
Provides volume type associated with volume.
Bases: dict
A hashable dictionary that is comparable (i.e. in unit tests, etc.)
Return an equivalent to the input dictionary with lower-case keys.
Map Cinder QOS spec to limit/throughput-value as used in client API.
Resolves host name to IP address.
Sets the attribute in a thread safe manner.
Returns if new val was set on attribute. If attr already had the value then False.
Converts true, yes, y, 1 to True, False otherwise.
Checks if a driver is instantiated other than by the unified driver.
Helps check direct instantiation of netapp drivers. Call this function in every netapp block driver constructor.
Check validity of Cinder qos spec for our backend.