The nova.virt.vmwareapi.fake Module

A fake VMware VI API implementation.

class DataObject(obj_name=None)

Bases: object

Data object base class.

class Datacenter

Bases: nova.virt.vmwareapi.fake.ManagedObject

Datacenter class.

class Datastore

Bases: nova.virt.vmwareapi.fake.ManagedObject

Datastore class.

class FakeFactory

Bases: object

Fake factory class for the suds client.

create(obj_name)

Creates a namespace object.

class FakeVim(protocol='https', host='localhost', trace=None)

Bases: object

Fake VIM Class.

get_service_content()
class HostNetworkSystem

Bases: nova.virt.vmwareapi.fake.ManagedObject

HostNetworkSystem class.

class HostSystem(obj_ref=None, value='host-123')

Bases: nova.virt.vmwareapi.fake.ManagedObject

Host System class.

class ManagedObject(name='ManagedObject', obj_ref=None, value=None)

Bases: object

Managed Object base class.

get(attr)

Gets an attribute. Used as an intermediary to get nested property like ‘a.b.c’ value.

set(attr, val)

Sets an attribute value. Not using the __setattr__ directly for we want to set attributes of the type ‘a.b.c’ and using this function class we set the same.

class ManagedObjectReference(value='object-123', _type='ManagedObject')

Bases: object

A managed object reference is a remote identifier.

class Network

Bases: nova.virt.vmwareapi.fake.ManagedObject

Network class.

class ObjectContent(obj_ref, prop_list=None, missing_list=None)

Bases: object

ObjectContent array holds dynamic properties.

class Property(name=None, val=None)

Bases: object

Property Object base class.

class ResourcePool

Bases: nova.virt.vmwareapi.fake.ManagedObject

Resource Pool class.

class Task(task_name, state='running')

Bases: nova.virt.vmwareapi.fake.ManagedObject

Task class.

class VirtualDisk

Bases: nova.virt.vmwareapi.fake.DataObject

Virtual Disk class.

class VirtualDiskFlatVer2BackingInfo

Bases: nova.virt.vmwareapi.fake.DataObject

VirtualDiskFlatVer2BackingInfo class.

class VirtualDiskRawDiskMappingVer1BackingInfo

Bases: nova.virt.vmwareapi.fake.DataObject

VirtualDiskRawDiskMappingVer1BackingInfo class.

class VirtualLsiLogicController(obj_name=None)

Bases: nova.virt.vmwareapi.fake.DataObject

VirtualLsiLogicController class.

class VirtualMachine(**kwargs)

Bases: nova.virt.vmwareapi.fake.ManagedObject

Virtual Machine class.

reconfig(factory, val)

Called to reconfigure the VM. Actually customizes the property setting of the Virtual Machine object.

class VirtualPCNet32

Bases: nova.virt.vmwareapi.fake.DataObject

VirtualPCNet32 class.

cleanup()

Clear the db contents.

create_datacenter()
create_datastore()
create_host()
create_host_network_system()
create_network()
create_res_pool()
create_task(task_name, state='running')
fake_fetch_image(context, image, instance, **kwargs)

Fakes fetch image call. Just adds a reference to the db for the file.

fake_get_network(*args, **kwargs)

Fake get network.

fake_get_vmdk_size_and_properties(context, image_id, instance)

Fakes the file size and properties fetch for the image file.

fake_plug_vifs(*args, **kwargs)

Fakes plugging vifs.

fake_upload_image(context, image, instance, **kwargs)

Fakes the upload of an image.

log_db_contents(msg=None)

Log DB Contents.

reset()

Resets the db contents.

Previous topic

The nova.virt.vmwareapi.error_util Module

Next topic

The nova.virt.vmwareapi.host Module

This Page