The nova.virt.libvirt.config Module

Configuration for libvirt objects.

Classes to represent the configuration of various libvirt objects and support conversion to/from XML. These classes are solely concerned by providing direct Object <-> XML document conversions. No policy or operational decisions should be made by code in these classes. Such policy belongs in the ‘designer.py’ module which provides simplified helpers for populating up config object instances.

class LibvirtConfigCPU(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

add_feature(feat)
format_dom()
parse_dom(xmldoc)
class LibvirtConfigCPUFeature(name=None, **kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCaps(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsGuest(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsHost(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsNUMACPU(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsNUMACell(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsNUMAPages(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigCapsNUMATopology(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuest(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

add_device(dev)
format_dom()
parse_dom(xmldoc)
set_clock(clk)
class LibvirtConfigGuestCPU(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigCPU

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestCPUFeature(name=None, **kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigCPUFeature

format_dom()
class LibvirtConfigGuestCPUNUMA(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestCPUNUMACell(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestCPUTune(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestCPUTuneEmulatorPin(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestCPUTuneVCPUPin(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestCPUTuneVCPUSched(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestChannel(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestCharBase

format_dom()
class LibvirtConfigGuestChar(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestCharBase

format_dom()
class LibvirtConfigGuestCharBase(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestClock(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

add_timer(tm)
format_dom()
class LibvirtConfigGuestConsole(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestChar

class LibvirtConfigGuestController(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestDevice(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

class LibvirtConfigGuestDisk(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestDiskBackingStore(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

parse_dom(xmldoc)
class LibvirtConfigGuestFeature(name, **kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

class LibvirtConfigGuestFeatureACPI(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestFeature

class LibvirtConfigGuestFeatureAPIC(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestFeature

class LibvirtConfigGuestFeatureHyperV(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestFeature

MIN_SPINLOCK_RETRIES = 4095
format_dom()
class LibvirtConfigGuestFeaturePAE(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestFeature

class LibvirtConfigGuestFilesys(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestGIDMap(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestIDMap

class LibvirtConfigGuestGraphics(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestHostdev(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestHostdevPCI(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestHostdev

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestIDMap(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestInput(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestInterface(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

add_filter_param(key, value)
add_vport_param(key, value)
format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestMemoryBacking(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestMemoryBackingPage(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestMemoryTune(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestMetaNovaFlavor

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestMetaNovaInstance

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestMetaNovaOwner

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestNUMATune(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestNUMATuneMemNode(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestNUMATuneMemory(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestRng(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestSMBIOS(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestSerial(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestChar

class LibvirtConfigGuestSnapshot(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

add_disk(disk)
format_dom()
class LibvirtConfigGuestSnapshotDisk(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

Disk class for handling disk information in snapshots.

Similar to LibvirtConfigGuestDisk, but used to represent disk entities in <domainsnapshot> structures rather than real devices. These typically have fewer members, and different expectations for which fields are required.

format_dom()
parse_dom(xmldoc)
class LibvirtConfigGuestSysinfo(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestTimer(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigGuestUIDMap(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestIDMap

class LibvirtConfigGuestVideo(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigGuestWatchdog(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigMemoryBalloon(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigGuestDevice

format_dom()
class LibvirtConfigNodeDevice(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

Libvirt Node Devices parser.

parse_dom(xmldoc)
class LibvirtConfigNodeDevicePciCap(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

Libvirt Node Devices pci capability parser.

parse_dom(xmldoc)
class LibvirtConfigNodeDevicePciSubFunctionCap(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

parse_dom(xmldoc)
class LibvirtConfigObject(**kwargs)

Bases: object

format_dom()
parse_dom(xmldoc)
parse_str(xmlstr)
to_xml(pretty_print=True)
class LibvirtConfigSeclabel(**kwargs)

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
class LibvirtConfigSecret

Bases: nova.virt.libvirt.config.LibvirtConfigObject

format_dom()
get_yes_no_str(value)

Previous topic

The nova.virt.libvirt.compat Module

Next topic

The nova.virt.libvirt.designer Module

Project Source

This Page