-
Notifications
You must be signed in to change notification settings - Fork 1
virttest.libvirt_xml.devices
- index
- modules |
- next |
- previous |
- Avocado VT 44.0 documentation »
- virttest »
- virttest package »
- virttest.libvirt_xml package »
virttest.libvirt_xml.devices package¶
Submodules¶
virttest.libvirt_xml.devices.address module¶
Address device / device descriptor class
http://libvirt.org/formatdomain.html#elementsAddress
classvirttest.libvirt_xml.devices.address.``Address
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
virttest.libvirt_xml.devices.base module¶
Common base classes for devices
classvirttest.libvirt_xml.devices.base.``StubDeviceMeta
(mcs, name, bases, dct)¶
Bases: type
Metaclass for generating stub Device classes where not fully implemented yet
Configuration for new class
warning_issued
= False¶
classvirttest.libvirt_xml.devices.base.``TypedDeviceBase
(device_tag, type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
Base class implementing common functions for all device XML w/o a type attr.
Initialize Typed device instance’s basic XML with type_name & device_tag
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Hides type_name from superclass new_from_element().
type_name
¶
classvirttest.libvirt_xml.devices.base.``UntypedDeviceBase
(device_tag, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Base class implementing common functions for all device XML w/o a type attr.
Initialize untyped device instance’s basic XML with device_tag
device_tag
¶
from_element
(element)¶
Stateful component to helper method for new_from_element.
classmethodnew_from_dict
(properties, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Create a new device XML instance from a dict-like object
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Create a new device XML instance from an single ElementTree element
virttest.libvirt_xml.devices.channel module¶
Classes to support XML for channel devices
http://libvirt.org/formatdomain.html#elementCharSerial
classvirttest.libvirt_xml.devices.channel.``Channel
(type_name='unix', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.character.CharacterBase
address
¶
alias
¶
source
¶
target
¶
virttest.libvirt_xml.devices.character module¶
Generic character device support for serial, parallel, channel, and console
http://libvirt.org/formatdomain.html#elementCharSerial
classvirttest.libvirt_xml.devices.character.``CharacterBase
(device_tag, type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
Initialize Typed device instance’s basic XML with type_name & device_tag
add_source
(**attributes)¶
Convenience method for appending a source from dictionary of attributes
add_target
(**attributes)¶
Convenience method for appending a target from dictionary of attributes
del_sources
()¶
Remove the list of dictionaries containing each source’s attributes.
del_targets
()¶
Remove the list of dictionaries containing each target’s attributes.
get_sources
()¶
Return a list of dictionaries containing each source’s attributes.
get_targets
()¶
Return a list of dictionaries containing each target’s attributes.
set_sources
(value)¶
Set all sources to the value list of dictionaries of source attributes.
set_targets
(value)¶
Set all sources to the value list of dictionaries of target attributes.
sources
¶
targets
¶
update_source
(index, **attributes)¶
Convenience method for merging values into a source’s attributes
update_target
(index, **attributes)¶
Convenience method for merging values into a target’s attributes
virttest.libvirt_xml.devices.console module¶
Console device support class(es)
http://libvirt.org/formatdomain.html#elementCharSerial
classvirttest.libvirt_xml.devices.console.``Console
(type_name='pty', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.character.CharacterBase
staticmarshal_from_sources
(item, index, libvirtxml)¶
Convert a dict to console source attributes.
staticmarshal_to_sources
(tag, attr_dict, index, libvirtxml)¶
Convert a source tag and attributes to a dict.
protocol_type
¶
sources
¶
target_port
¶
target_type
¶
virttest.libvirt_xml.devices.controller module¶
controller device support class(es)
http://libvirt.org/formatdomain.html#elementsControllers
classvirttest.libvirt_xml.devices.controller.``Controller
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Controller.``address
¶
Controller.``alias
¶
Controller.``driver
¶
Controller.``index
¶
Controller.``model
¶
Controller.``new_controller_address
(**dargs)¶
Return a new controller Address instance and set properties from dargs
Controller.``pcihole64
¶
Controller.``ports
¶
Controller.``target
¶
Controller.``type
¶
Controller.``vectors
¶
virttest.libvirt_xml.devices.disk module¶
disk device support class(es)
http://libvirt.org/formatdomain.html#elementsDisks
classvirttest.libvirt_xml.devices.disk.``Disk
(type_name='file', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
Disk device XML class
Properties:
device:
string, how exposted to guest
rawio:
string (yes/no), disk needs rawio capability
sgio:
string, “filtered” or “unfiltered”
snapshot:
string, “yes”, “no”, “internal” or “external”
wwn:
string.
serial:
string.
vendor:
string.
product:
string.
driver:
dict, keys: name, type, cache, error_policy, io, ioeventfd, event_idx, copy_on_read, discard
target:
dict, keys: dev, bus, tray
blockio:
dict, keys: logical_block_size, physical_block_size
geometry:
dict, keys: cyls, heads, secs, trans
address:
libvirt_xml.devices.Address instance
boot:
string, boot order number to use if not using boot in os element
readonly:
bool, True/False
transient:
bool, True/False
share:
bool, True/False
mirror:
bool, read-only, True if block copy started
ready:
bool, read-only, True if disk ready for pivot
iotune:
libvirt_xml.devices.Disk.IOTune instance
source:
libvirt_xml.devices.Disk.DiskSource instance
encryption:
libvirt_xml.devices.Disk.Encryption instance.
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classDisk.``Auth
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>, auth_user='')¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Auth device XML class
Properties:
auth_user:
string, attribute of auth tag
secret_type:
string, attribute of secret tag, sub-tag of the auth tag
secret_uuid:
string, attribute of secret tag, sub-tag of the auth tag
secret_usage:
string, attribute of secret tag, sub-tag of the auth tag
auth_user
¶
secret_type
¶
secret_usage
¶
secret_uuid
¶
classDisk.``DiskSource
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Disk source device XML class
Properties:
attrs: Dictionary of attributes, qualifying the disk type seclabels: list of libvirt_xml.devices.seclabel.Seclabel instances hosts: list of dictionaries describing network host properties
attrs
¶
config_file
¶
hosts
¶
staticmarshal_from_host
(item, index, libvirtxml)¶
Convert a dictionary into a tag + attributes
staticmarshal_from_seclabel
(item, index, libvirtxml)¶
Convert a Seclabel instance into tag + attributes
staticmarshal_to_host
(tag, attr_dict, index, libvirtxml)¶
Convert a tag + attributes into a dictionary
staticmarshal_to_seclabel
(tag, attr_dict, index, libvirtxml)¶
Convert a tag + attributes into a Seclabel instance
seclabels
¶
snapshot_name
¶
classDisk.``Encryption
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Encryption device XML class
Properties:
encryption:
string.
secret:
dict, keys: type, uuid
encryption
¶
secret
¶
classDisk.``IOTune
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
IOTune device XML class
Properties:
total_bytes_sec: str(int) read_bytes_sec: str(int) write_bytes_sec: str(int) total_iops_sec: str(int) read_iops_sec: str(int) write_iops_sec: str(int)
read_bytes_sec
¶
read_iops_sec
¶
total_bytes_sec
¶
total_iops_sec
¶
write_bytes_sec
¶
write_iops_sec
¶
Disk.``address
¶
Disk.``auth
¶
Disk.``blockio
¶
Disk.``boot
¶
Disk.``device
¶
Disk.``driver
¶
Disk.``encryption
¶
Disk.``geometry
¶
Disk.``iotune
¶
Disk.``mirror
¶
Disk.``new_auth
(**dargs)¶
Return a new disk auth instance and set properties from dargs
Disk.``new_disk_address
(type_name='drive', **dargs)¶
Return a new disk Address instance and set properties from dargs
Disk.``new_disk_source
(**dargs)¶
Return a new disk source instance and set properties from dargs
Disk.``new_encryption
(**dargs)¶
Return a new disk encryption instance and set properties from dargs
Disk.``new_iotune
(**dargs)¶
Return a new disk IOTune instance and set properties from dargs
Disk.``product
¶
Disk.``rawio
¶
Disk.``readonly
¶
Disk.``ready
¶
Disk.``serial
¶
Disk.``sgio
¶
Disk.``share
¶
Disk.``snapshot
¶
Disk.``source
¶
Disk.``target
¶
Disk.``transient
¶
Disk.``vendor
¶
Disk.``wwn
¶
virttest.libvirt_xml.devices.emulator module¶
Support for the pseudo ‘emulator’ device XML
http://libvirt.org/formatdomain.html#elementsDevices
classvirttest.libvirt_xml.devices.emulator.``Emulator
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
path
¶
virttest.libvirt_xml.devices.filesystem module¶
filesystem device support class(es)
http://libvirt.org/formatdomain.html#elementsFilesystems
classvirttest.libvirt_xml.devices.filesystem.``Filesystem
(type_name='mount', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
accessmode
¶
source
¶
target
¶
virttest.libvirt_xml.devices.graphics module¶
graphics framebuffer device support class(es)
http://libvirt.org/formatdomain.html#elementsGraphics
classvirttest.libvirt_xml.devices.graphics.``Graphics
(type_name='vnc', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
add_channel
(**attributes)¶
Convenience method for appending channel from dictionary of attributes
staticadd_graphic
(vm_name, passwd=None, graphic='vnc', add_channel=False)¶
Add spice ssl or vnc graphic with passwd
Parameters:
- vm_name – name of vm
- passwd – password for graphic
- graphic – graphic type, spice or vnc
- add_channel – add channel for spice
add_listens
(**attributes)¶
Convenience method for appending listens from dictionary of attributes
autoport
¶
staticchange_graphic_type_passwd
(vm_name, graphic, passwd=None)¶
Change the graphic type name and passwd
Parameters:
- vm_name – name of vm
- graphic – graphic type, spice or vnc
- passwd – password for graphic
channel
¶
defaultMode
¶
del_channel
()¶
Remove the list of dictionaries containing each channel’s attributes
staticdel_graphic
(vm_name)¶
Del original graphic device
Parameters:
vm_name – name of vm
del_listens
()¶
Remove the list of dictionaries containing each listen’s attributes
get_channel
()¶
Return a list of dictionaries containing each channel’s attributes
get_listens
()¶
Return a list of dictionaries containing each listen’s attributes
image_compression
¶
jpeg_compression
¶
listen
¶
listen_addr
¶
listen_type
¶
listens
¶
passwd
¶
playback_compression
¶
port
¶
set_channel
(value)¶
Set all channel to the value list of dictionaries of channel attributes
set_listens
(value)¶
Set all listens to the value list of dictionaries of listen attributes
tlsPort
¶
zlib_compression
¶
virttest.libvirt_xml.devices.hostdev module¶
hostdev device support class(es)
http://libvirt.org/formatdomain.html#elementsHostDev
classvirttest.libvirt_xml.devices.hostdev.``Hostdev
(type_name='hostdev', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
classSource
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
classUntypedAddress
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
bus
¶
device
¶
domain
¶
function
¶
slot
¶
target
¶
unit
¶
Hostdev.Source.``adapter_name
¶
Hostdev.Source.``new_untyped_address
(**dargs)¶
Hostdev.Source.``product_id
¶
Hostdev.Source.``untyped_address
¶
Hostdev.Source.``vendor_id
¶
Hostdev.``boot_order
¶
Hostdev.``hostdev_type
¶
Hostdev.``managed
¶
Hostdev.``mode
¶
Hostdev.``new_source
(**dargs)¶
Hostdev.``source
¶
virttest.libvirt_xml.devices.hub module¶
hub device support class(es)
http://libvirt.org/formatdomain.html#elementsHub
classvirttest.libvirt_xml.devices.hub.``Hub
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Hub.``address
¶
Hub.``new_hub_address
(type_name='usb', **dargs)¶
Return a new hub Address instance and set properties from dargs
virttest.libvirt_xml.devices.input module¶
input device support class(es)
http://libvirt.org/formatdomain.html#elementsInput
classvirttest.libvirt_xml.devices.input.``Input
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Input.``address
¶
Input.``input_bus
¶
Input.``new_input_address
(type_name='usb', **dargs)¶
Return a new input Address instance and set properties from dargs
virttest.libvirt_xml.devices.interface module¶
interface device support class(es)
http://libvirt.org/formatdomain.html#elementsNICS http://libvirt.org/formatnwfilter.html#nwfconceptsvars
classvirttest.libvirt_xml.devices.interface.``Interface
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classInterface.``Bandwidth
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Interface bandwidth xml class.
Properties:
inbound:
dict. Keys: average, peak, floor, burst
outbound:
dict. Keys: average, peak, floor, burst
inbound
¶
outbound
¶
classInterface.``Driver
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Interface Driver xml class.
Properties:
driver:
dict.
host:
dict. Keys: csum, gso, tso4, tso6, ecn, ufo
guest:
dict. Keys: csum, gso, tso4, tso6, ecn, ufo
driver_attr
¶
driver_guest
¶
driver_host
¶
classInterface.``Filterref
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Interface filterref xml class.
Properties:
name:
string. filter name
parameters:
list. parameters element dict list
staticmarshal_from_parameter
(item, index, libvirtxml)¶
Convert a dictionary into a tag + attributes
staticmarshal_to_parameter
(tag, attr_dict, index, libvirtxml)¶
Convert a tag + attributes into a dictionary
name
¶
parameters
¶
Interface.``address
¶
Interface.``backend
¶
Interface.``bandwidth
¶
Interface.``boot_order
¶
Interface.``driver
¶
Interface.``filterref
¶
Interface.``link_state
¶
Interface.``mac_address
¶
Interface.``model
¶
Interface.``new_bandwidth
(**dargs)¶
Return a new interafce banwidth instance from dargs
Interface.``new_driver
(**dargs)¶
Return a new interafce driver instance from dargs
Interface.``new_filterref
(**dargs)¶
Return a new interafce filterref instance from dargs
Interface.``new_iface_address
(**dargs)¶
Return a new interface Address instance and set properties from dargs
Interface.``source
¶
Interface.``target
¶
Interface.``virtualport_type
¶
virttest.libvirt_xml.devices.lease module¶
lease device support class(es)
http://libvirt.org/formatdomain.html#elementsLease
classvirttest.libvirt_xml.devices.lease.``Lease
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
Initialize stub un-typed device instance
virttest.libvirt_xml.devices.librarian module¶
Module to hide underlying device xml handler class implementation
virttest.libvirt_xml.devices.librarian.``get
(name)¶
Returns named device xml element’s handler class
Parameters:
name – the device name
Returns:
the named device xml element’s handler class
virttest.libvirt_xml.devices.memballoon module¶
memballoon device support class(es)
http://libvirt.org/formatdomain.html#elementsMemBalloon
classvirttest.libvirt_xml.devices.memballoon.``Memballoon
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
model
¶
stats_period
¶
virttest.libvirt_xml.devices.memory module¶
memory device support class(es)
classvirttest.libvirt_xml.devices.memory.``Memory
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
classAddress
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
attrs
¶
classmethodnew_from_dict
(attributes, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classmethodnew_from_element
(element, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
classMemory.``Source
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Memory source xml class.
Properties:
pagesize:
int.
pagesize_unit, nodemask:
string.
nodemask
¶
pagesize
¶
pagesize_unit
¶
classMemory.``Target
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Memory target xml class.
Properties:
size, node:
int.
size_unit:
string.
node
¶
size
¶
size_unit
¶
Memory.``address
¶
Memory.``mem_model
¶
Memory.``new_mem_address
(type_name='dimm', **dargs)¶
Return a new disk Address instance and set properties from dargs
Memory.``source
¶
Memory.``target
¶
virttest.libvirt_xml.devices.panic module¶
panic device support class(es)
http://libvirt.org/formatdomain.html#elementsPanic
classvirttest.libvirt_xml.devices.panic.``Panic
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
addr_bus
¶
addr_controller
¶
addr_iobase
¶
addr_port
¶
addr_type
¶
model
¶
virttest.libvirt_xml.devices.parallel module¶
Parallel device support class(es)
http://libvirt.org/formatdomain.html#elementCharSerial
classvirttest.libvirt_xml.devices.parallel.``Parallel
(type_name='pty', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.character.CharacterBase
virttest.libvirt_xml.devices.redirdev module¶
redirdev device support class(es)
http://libvirt.org/formatdomain.html#elementsRedir
classvirttest.libvirt_xml.devices.redirdev.``Redirdev
(type_name='spicevmc', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
Initialize stub typed device instance
virttest.libvirt_xml.devices.rng module¶
random number generator device support class(es)
http://libvirt.org/formatdomain.html#elementsRng
classvirttest.libvirt_xml.devices.rng.``Rng
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
classBackend
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.base.LibvirtXMLBase
Rng backend xml class.
Properties:
model:
string. backend model
type:
string. backend type
backend_dev
¶
backend_model
¶
backend_protocol
¶
backend_type
¶
staticmarshal_from_source
(item, index, libvirtxml)¶
Convert a dictionary into a tag + attributes
staticmarshal_to_source
(tag, attr_dict, index, libvirtxml)¶
Convert a tag + attributes into a dictionary
source
¶
Rng.``backend
¶
Rng.``rate
¶
Rng.``rng_model
¶
virttest.libvirt_xml.devices.seclabel module¶
seclabel device support class(es)
http://libvirt.org/formatdomain.html#seclabel
classvirttest.libvirt_xml.devices.seclabel.``Seclabel
(type_name='dynamic', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
Seclabel XML class
Properties:
model:
string, security driver model
relabel:
string, ‘yes’ or ‘no’
baselabel:
string, base label string
label:
string, the sec label string
baselabel
¶
label
¶
model
¶
relabel
¶
virttest.libvirt_xml.devices.serial module¶
Classes to support XML for serial devices
http://libvirt.org/formatdomain.html#elementCharSerial
classvirttest.libvirt_xml.devices.serial.``Serial
(type_name='pty', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.character.CharacterBase
staticmarshal_from_sources
(item, index, libvirtxml)¶
Convert a dict to serial source attributes.
staticmarshal_to_sources
(tag, attr_dict, index, libvirtxml)¶
Convert a source tag and attributes to a dict.
protocol_type
¶
sources
¶
target_port
¶
target_type
¶
virttest.libvirt_xml.devices.smartcard module¶
smartcard device support class(es)
http://libvirt.org/formatdomain.html#elementsSmartcard
classvirttest.libvirt_xml.devices.smartcard.``Smartcard
(type_name='spicevmc', virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
address
¶
address_controller
¶
address_slot
¶
address_type
¶
protocol
¶
protocol_type
¶
smartcard_mode
¶
smartcard_type
¶
source
¶
source_host
¶
source_mode
¶
source_service
¶
virttest.libvirt_xml.devices.sound module¶
sound device support class(es)
http://libvirt.org/formatdomain.html#elementsSound
classvirttest.libvirt_xml.devices.sound.``Sound
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
address
¶
codec_type
¶
model_type
¶
virttest.libvirt_xml.devices.video module¶
video device support class(es)
http://libvirt.org/formatdomain.html#elementsVideo
classvirttest.libvirt_xml.devices.video.``Video
(type_name, virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.TypedDeviceBase
acceleration
¶
address
¶
model_heads
¶
model_ram
¶
model_type
¶
model_vram
¶
primary
¶
virttest.libvirt_xml.devices.watchdog module¶
watchdog device support class(es)
http://libvirt.org/formatdomain.html#elementsWatchdog
classvirttest.libvirt_xml.devices.watchdog.``Watchdog
(virsh_instance=<module 'virttest.virsh' from '/tmp/avocado-vt/virttest/virsh.py'>)¶
Bases: virttest.libvirt_xml.devices.base.UntypedDeviceBase
action
¶
address
¶
model_type
¶
Module contents¶
-
virttest.libvirt_xml.devices package
- Submodules
- virttest.libvirt_xml.devices.address module
- virttest.libvirt_xml.devices.base module
- virttest.libvirt_xml.devices.channel module
- virttest.libvirt_xml.devices.character module
- virttest.libvirt_xml.devices.console module
- virttest.libvirt_xml.devices.controller module
- virttest.libvirt_xml.devices.disk module
- virttest.libvirt_xml.devices.emulator module
- virttest.libvirt_xml.devices.filesystem module
- virttest.libvirt_xml.devices.graphics module
- virttest.libvirt_xml.devices.hostdev module
- virttest.libvirt_xml.devices.hub module
- virttest.libvirt_xml.devices.input module
- virttest.libvirt_xml.devices.interface module
- virttest.libvirt_xml.devices.lease module
- virttest.libvirt_xml.devices.librarian module
- virttest.libvirt_xml.devices.memballoon module
- virttest.libvirt_xml.devices.memory module
- virttest.libvirt_xml.devices.panic module
- virttest.libvirt_xml.devices.parallel module
- virttest.libvirt_xml.devices.redirdev module
- virttest.libvirt_xml.devices.rng module
- virttest.libvirt_xml.devices.seclabel module
- virttest.libvirt_xml.devices.serial module
- virttest.libvirt_xml.devices.smartcard module
- virttest.libvirt_xml.devices.sound module
- virttest.libvirt_xml.devices.video module
- virttest.libvirt_xml.devices.watchdog module
- Module contents
virttest.libvirt_xml.nwfilter_protocols package
- index
- modules |
- next |
- previous |
- Avocado VT 44.0 documentation »
- virttest »
- virttest package »
- virttest.libvirt_xml package »
© Copyright 2014, Red Hat. Created using Sphinx 1.5.1.