The nova.tests.fakelibvirt Module

class Connection(uri, readonly, version=9007)

Bases: object

compareCPU(xml, flags)
createXML(xml, flags)
defineXML(xml)
domainEventRegisterAny(dom, eventid, callback, opaque)
getCapabilities()
getHostname()
getInfo()
getLibVersion()
getType()
getVersion()
listDefinedDomains()
listDomainsID()
lookupByID(id)
lookupByName(name)
numOfDomains()
nwfilterDefineXML(xml)
nwfilterLookupByName(name)
class Domain(connection, xml, running=False, transient=False)

Bases: object

ID()
UUIDString()
XMLDesc(flags)
attachDevice(xml)
attachDeviceFlags(xml, flags)
blockStats(device)
create()
createWithFlags(flags)
destroy()
detachDevice(xml)
detachDeviceFlags(xml, _flags)
hasManagedSaveImage(flags)
info()
interfaceStats(device)
isActive()
managedSave(flags)
managedSaveRemove(flags)
maxMemory()
memoryStats()
migrateToURI(desturi, flags, dname, bandwidth)
name()
reset(flags)
resume()
shutdown()
snapshotCreateXML(xml, flags)
suspend()
undefine()
undefineFlags(flags)
vcpus()
class DomainSnapshot(name, domain)

Bases: object

delete(flags)
class NWFilter(connection, xml)

Bases: object

undefine()
exception libvirtError(msg, error_code=950, error_domain=100)

Bases: exceptions.Exception

get_error_code()
get_error_domain()
openAuth(uri, auth, flags)
openReadOnly(uri)
virConnect

alias of Connection

virDomain

alias of Domain

virEventRegisterDefaultImpl()
virEventRunDefaultImpl()

Previous topic

The nova.tests.fakeguestfs Module

Next topic

The nova.tests.glance.stubs Module

This Page