The cinder.volume.drivers.netapp.utils Module

Utilities for NetApp drivers.

This module contains common utilities to be used by one or more NetApp drivers to achieve the desired functionality.

class OpenStackInfo

Bases: object

OS/distribution, release, and version.

NetApp uses these fields as content for EMS log entry.

PACKAGE_NAME = 'python-cinder'
info()
check_flags(required_flags, configuration)

Ensure that the flags we care about are set.

get_iscsi_connection_properties(lun_id, volume, iqn, address, port)
get_volume_extra_specs(volume)

Provides extra specs associated with volume.

class hashabledict

Bases: dict

A hashable dictionary that is comparable (i.e. in unit tests, etc.)

log_extra_spec_warnings(extra_specs)
resolve_hostname(hostname)

Resolves host name to IP address.

round_down(value, precision)
set_safe_attr(*args, **kwargs)

Sets the attribute in a thread safe manner.

Returns if new val was set on attribute. If attr already had the value then False.

to_bool(val)

Converts true, yes, y, 1 to True, False otherwise.

validate_instantiation(**kwargs)

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.

Previous topic

The cinder.volume.drivers.netapp.options Module

Next topic

The cinder.volume.drivers.nfs Module

This Page