The cinder.volume.drivers.vmware.vim Module

Classes for making VMware VI SOAP calls.

class VIMMessagePlugin

Bases: suds.plugin.MessagePlugin

addAttributeForValue(node)

Helper to handle AnyType.

suds does not handle AnyType properly. VI SDK requires type attribute to be set when AnyType is used

Parameters:node – XML value node
marshalled(context)

Marshal soap context.

Provides the plugin with the opportunity to prune empty nodes and fixup nodes before sending it to the server.

Parameters:context – SOAP context
class Vim(protocol='https', host='localhost', wsdl_loc=None)

Bases: object

The VIM Object.

client
service_content
get_moref(value, type)

Get managed object reference.

Parameters:
  • value – value for the managed object
  • type – type of the managed object
Returns:

Managed object reference with input value and type

Previous topic

The cinder.volume.drivers.vmware.read_write_util Module

Next topic

The cinder.volume.drivers.vmware.vim_util Module

This Page