libvirtpy 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- libvirtpy/__init__.py +5 -0
- libvirtpy/client/__init__.py +54 -0
- libvirtpy/client/_bases.py +326 -0
- libvirtpy/client/_runner.py +57 -0
- libvirtpy/client/aio.py +5922 -0
- libvirtpy/client/client.py +5695 -0
- libvirtpy/client/operations/__init__.py +631 -0
- libvirtpy/client/operations/_common.py +495 -0
- libvirtpy/client/operations/checkpoint.py +196 -0
- libvirtpy/client/operations/connection.py +93 -0
- libvirtpy/client/operations/connection_extra.py +256 -0
- libvirtpy/client/operations/domain.py +306 -0
- libvirtpy/client/operations/domain_agent.py +115 -0
- libvirtpy/client/operations/domain_block.py +368 -0
- libvirtpy/client/operations/domain_info.py +400 -0
- libvirtpy/client/operations/domain_lifecycle.py +338 -0
- libvirtpy/client/operations/domain_migration.py +164 -0
- libvirtpy/client/operations/domain_network.py +113 -0
- libvirtpy/client/operations/domain_tuning.py +494 -0
- libvirtpy/client/operations/host.py +246 -0
- libvirtpy/client/operations/host_interface.py +100 -0
- libvirtpy/client/operations/interface_extra.py +45 -0
- libvirtpy/client/operations/network.py +135 -0
- libvirtpy/client/operations/network_info.py +155 -0
- libvirtpy/client/operations/network_port.py +142 -0
- libvirtpy/client/operations/node_device.py +76 -0
- libvirtpy/client/operations/node_device_info.py +189 -0
- libvirtpy/client/operations/nwfilter.py +67 -0
- libvirtpy/client/operations/nwfilter_binding.py +74 -0
- libvirtpy/client/operations/secret.py +93 -0
- libvirtpy/client/operations/secret_extra.py +24 -0
- libvirtpy/client/operations/snapshot.py +100 -0
- libvirtpy/client/operations/snapshot_tree.py +114 -0
- libvirtpy/client/operations/storage.py +267 -0
- libvirtpy/client/operations/storage_info.py +188 -0
- libvirtpy/client/operations/streams.py +201 -0
- libvirtpy/client/references.py +249 -0
- libvirtpy/client/subscribing.py +88 -0
- libvirtpy/client/testing/__init__.py +24 -0
- libvirtpy/client/testing/_common.py +167 -0
- libvirtpy/client/testing/_domains.py +294 -0
- libvirtpy/client/testing/_objects.py +205 -0
- libvirtpy/client/testing/_state.py +246 -0
- libvirtpy/client/testing/_storage.py +171 -0
- libvirtpy/client/testing/async_transport.py +30 -0
- libvirtpy/client/testing/fake.py +81 -0
- libvirtpy/client/transport.py +87 -0
- libvirtpy/client/types.py +59 -0
- libvirtpy/client/wire.py +436 -0
- libvirtpy/client/wire_aio.py +348 -0
- libvirtpy/errors.py +7 -0
- libvirtpy/py.typed +0 -0
- libvirtpy/rpc/__init__.py +1 -0
- libvirtpy/rpc/aio.py +387 -0
- libvirtpy/rpc/cpumap.py +48 -0
- libvirtpy/rpc/errors.py +186 -0
- libvirtpy/rpc/events.py +259 -0
- libvirtpy/rpc/options.py +66 -0
- libvirtpy/rpc/procedure.py +27 -0
- libvirtpy/rpc/protocol/__init__.py +0 -0
- libvirtpy/rpc/protocol/procedures.py +5163 -0
- libvirtpy/rpc/protocol/typed_hints.py +210 -0
- libvirtpy/rpc/protocol/types.py +9299 -0
- libvirtpy/rpc/remote.py +295 -0
- libvirtpy/rpc/remote_aio.py +106 -0
- libvirtpy/rpc/sasl.py +467 -0
- libvirtpy/rpc/session.py +424 -0
- libvirtpy/rpc/sockets.py +251 -0
- libvirtpy/rpc/stream.py +323 -0
- libvirtpy/rpc/subscription.py +451 -0
- libvirtpy/rpc/sync.py +460 -0
- libvirtpy/rpc/typed_params.py +97 -0
- libvirtpy/rpc/uri.py +85 -0
- libvirtpy/rpc/xdr.py +552 -0
- libvirtpy/xml/__init__.py +49 -0
- libvirtpy/xml/_base.py +145 -0
- libvirtpy/xml/_shared/__init__.py +1 -0
- libvirtpy/xml/_shared/metadata.py +67 -0
- libvirtpy/xml/_shared/network.py +108 -0
- libvirtpy/xml/_shared/storage.py +131 -0
- libvirtpy/xml/_shared/sysinfo.py +83 -0
- libvirtpy/xml/_types.py +197 -0
- libvirtpy/xml/_xml_element.py +134 -0
- libvirtpy/xml/backup/__init__.py +25 -0
- libvirtpy/xml/backup/backup.py +89 -0
- libvirtpy/xml/backup/checkpoint.py +48 -0
- libvirtpy/xml/capabilities/__init__.py +43 -0
- libvirtpy/xml/capabilities/domain.py +436 -0
- libvirtpy/xml/capabilities/host.py +413 -0
- libvirtpy/xml/capabilities/storagepool.py +59 -0
- libvirtpy/xml/domain/__init__.py +493 -0
- libvirtpy/xml/domain/blkiotune.py +81 -0
- libvirtpy/xml/domain/clock.py +79 -0
- libvirtpy/xml/domain/cpu.py +265 -0
- libvirtpy/xml/domain/devices/__init__.py +495 -0
- libvirtpy/xml/domain/devices/address.py +152 -0
- libvirtpy/xml/domain/devices/audio.py +204 -0
- libvirtpy/xml/domain/devices/chardev.py +197 -0
- libvirtpy/xml/domain/devices/common.py +75 -0
- libvirtpy/xml/domain/devices/controller.py +262 -0
- libvirtpy/xml/domain/devices/devices.py +79 -0
- libvirtpy/xml/domain/devices/disk.py +471 -0
- libvirtpy/xml/domain/devices/filesystem.py +206 -0
- libvirtpy/xml/domain/devices/graphics.py +245 -0
- libvirtpy/xml/domain/devices/hostdev.py +221 -0
- libvirtpy/xml/domain/devices/input.py +89 -0
- libvirtpy/xml/domain/devices/interface.py +459 -0
- libvirtpy/xml/domain/devices/iommu.py +54 -0
- libvirtpy/xml/domain/devices/memballoon.py +42 -0
- libvirtpy/xml/domain/devices/memory_device.py +101 -0
- libvirtpy/xml/domain/devices/misc.py +169 -0
- libvirtpy/xml/domain/devices/nvram.py +20 -0
- libvirtpy/xml/domain/devices/shmem.py +46 -0
- libvirtpy/xml/domain/devices/sound.py +42 -0
- libvirtpy/xml/domain/devices/tpm.py +103 -0
- libvirtpy/xml/domain/devices/usb.py +86 -0
- libvirtpy/xml/domain/devices/video.py +101 -0
- libvirtpy/xml/domain/domain.py +157 -0
- libvirtpy/xml/domain/features.py +312 -0
- libvirtpy/xml/domain/iothread.py +41 -0
- libvirtpy/xml/domain/launch_security.py +82 -0
- libvirtpy/xml/domain/memory.py +149 -0
- libvirtpy/xml/domain/misc.py +113 -0
- libvirtpy/xml/domain/namespaces.py +96 -0
- libvirtpy/xml/domain/numa.py +140 -0
- libvirtpy/xml/domain/os.py +267 -0
- libvirtpy/xml/domain/qemu.py +102 -0
- libvirtpy/xml/domain/seclabel.py +29 -0
- libvirtpy/xml/domain/storage_source.py +466 -0
- libvirtpy/xml/domain/sysinfo.py +34 -0
- libvirtpy/xml/interface/__init__.py +17 -0
- libvirtpy/xml/interface/interface.py +153 -0
- libvirtpy/xml/network/__init__.py +101 -0
- libvirtpy/xml/network/network.py +311 -0
- libvirtpy/xml/network/port.py +84 -0
- libvirtpy/xml/nodedev/__init__.py +13 -0
- libvirtpy/xml/nodedev/nodedev.py +490 -0
- libvirtpy/xml/nwfilter/__init__.py +81 -0
- libvirtpy/xml/nwfilter/binding.py +51 -0
- libvirtpy/xml/nwfilter/filter.py +92 -0
- libvirtpy/xml/nwfilter/rules.py +534 -0
- libvirtpy/xml/secret/__init__.py +11 -0
- libvirtpy/xml/secret/secret.py +36 -0
- libvirtpy/xml/snapshot/__init__.py +29 -0
- libvirtpy/xml/snapshot/snapshot.py +136 -0
- libvirtpy/xml/storage/__init__.py +75 -0
- libvirtpy/xml/storage/pool.py +219 -0
- libvirtpy/xml/storage/volume.py +102 -0
- libvirtpy/xml/sysinfo.py +40 -0
- libvirtpy-0.1.0.dist-info/METADATA +109 -0
- libvirtpy-0.1.0.dist-info/RECORD +154 -0
- libvirtpy-0.1.0.dist-info/WHEEL +4 -0
- libvirtpy-0.1.0.dist-info/licenses/LICENSE +501 -0
- libvirtpy-0.1.0.dist-info/licenses/NOTICE +23 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
"""``<controller>``: buses that other devices attach to.
|
|
2
|
+
|
|
3
|
+
One model per controller ``type``; ``Controller`` is their union (see
|
|
4
|
+
``libvirtpy.xml.domain.devices.address`` for why it is a plain union).
|
|
5
|
+
|
|
6
|
+
See https://libvirt.org/formatdomain.html#controllers
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Literal
|
|
10
|
+
|
|
11
|
+
from pydantic import Field
|
|
12
|
+
from pydantic_xml import attr, element
|
|
13
|
+
|
|
14
|
+
from libvirtpy.xml._base import LibvirtXmlModel
|
|
15
|
+
from libvirtpy.xml._types import HexNumber, OnOff, SizeUnit
|
|
16
|
+
from libvirtpy.xml.domain.devices.address import Address
|
|
17
|
+
from libvirtpy.xml.domain.devices.common import (
|
|
18
|
+
Alias,
|
|
19
|
+
DeviceAcpi,
|
|
20
|
+
DriverIothreads,
|
|
21
|
+
VirtioDriverOptions,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"CcidController",
|
|
26
|
+
"Controller",
|
|
27
|
+
"ControllerDriver",
|
|
28
|
+
"FdcController",
|
|
29
|
+
"IdeController",
|
|
30
|
+
"IsaController",
|
|
31
|
+
"NvmeController",
|
|
32
|
+
"PciController",
|
|
33
|
+
"PciControllerModel",
|
|
34
|
+
"PciControllerTarget",
|
|
35
|
+
"PciHole64",
|
|
36
|
+
"SataController",
|
|
37
|
+
"ScsiController",
|
|
38
|
+
"UsbController",
|
|
39
|
+
"UsbMaster",
|
|
40
|
+
"VirtioSerialController",
|
|
41
|
+
"XenbusController",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ControllerDriver(VirtioDriverOptions, tag="driver"):
|
|
46
|
+
"""``<driver>`` of a controller: queues and I/O threads."""
|
|
47
|
+
|
|
48
|
+
queues: int | None = attr(name="queues", default=None, ge=0)
|
|
49
|
+
cmd_per_lun: int | None = attr(name="cmd_per_lun", default=None, ge=0)
|
|
50
|
+
max_sectors: int | None = attr(name="max_sectors", default=None, ge=0)
|
|
51
|
+
ioeventfd: OnOff | None = attr(name="ioeventfd", default=None)
|
|
52
|
+
iothread: int | None = attr(name="iothread", default=None, ge=0)
|
|
53
|
+
iothreads: DriverIothreads | None = element(tag="iothreads", default=None)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class _ControllerBase(LibvirtXmlModel, tag="controller"):
|
|
57
|
+
"""Fields every controller type has."""
|
|
58
|
+
|
|
59
|
+
index: int | None = attr(
|
|
60
|
+
name="index", default=None, ge=0, description="Bus number of this type."
|
|
61
|
+
)
|
|
62
|
+
alias: Alias | None = element(tag="alias", default=None)
|
|
63
|
+
acpi: DeviceAcpi | None = element(tag="acpi", default=None)
|
|
64
|
+
address: Address | None = element(tag="address", default=None)
|
|
65
|
+
driver: ControllerDriver | None = element(tag="driver", default=None)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class FdcController(_ControllerBase, tag="controller"):
|
|
69
|
+
"""``type='fdc'``: a floppy disk controller."""
|
|
70
|
+
|
|
71
|
+
type: Literal["fdc"] = attr(name="type")
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class SataController(_ControllerBase, tag="controller"):
|
|
75
|
+
"""``type='sata'``: a SATA (AHCI) controller."""
|
|
76
|
+
|
|
77
|
+
type: Literal["sata"] = attr(name="type")
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class CcidController(_ControllerBase, tag="controller"):
|
|
81
|
+
"""``type='ccid'``: a USB smartcard reader."""
|
|
82
|
+
|
|
83
|
+
type: Literal["ccid"] = attr(name="type")
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class IsaController(_ControllerBase, tag="controller"):
|
|
87
|
+
"""``type='isa'``: the ISA bus."""
|
|
88
|
+
|
|
89
|
+
type: Literal["isa"] = attr(name="type")
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
class ScsiController(_ControllerBase, tag="controller"):
|
|
93
|
+
"""``type='scsi'``: a SCSI host adapter."""
|
|
94
|
+
|
|
95
|
+
type: Literal["scsi"] = attr(name="type")
|
|
96
|
+
model: (
|
|
97
|
+
Literal[
|
|
98
|
+
"auto",
|
|
99
|
+
"buslogic",
|
|
100
|
+
"lsilogic",
|
|
101
|
+
"lsisas1068",
|
|
102
|
+
"vmpvscsi",
|
|
103
|
+
"ibmvscsi",
|
|
104
|
+
"virtio-scsi",
|
|
105
|
+
"lsisas1078",
|
|
106
|
+
"virtio-transitional",
|
|
107
|
+
"virtio-non-transitional",
|
|
108
|
+
"ncr53c90",
|
|
109
|
+
"dc390",
|
|
110
|
+
"am53c974",
|
|
111
|
+
]
|
|
112
|
+
| None
|
|
113
|
+
) = attr(name="model", default=None)
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class UsbMaster(LibvirtXmlModel, tag="master"):
|
|
117
|
+
"""``<master>``: makes a USB 1 companion controller part of a USB 2 one."""
|
|
118
|
+
|
|
119
|
+
startport: str = attr(name="startport")
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class UsbController(_ControllerBase, tag="controller"):
|
|
123
|
+
"""``type='usb'``: a USB host controller."""
|
|
124
|
+
|
|
125
|
+
type: Literal["usb"] = attr(name="type")
|
|
126
|
+
model: (
|
|
127
|
+
Literal[
|
|
128
|
+
"piix3-uhci",
|
|
129
|
+
"piix4-uhci",
|
|
130
|
+
"ehci",
|
|
131
|
+
"ich9-ehci1",
|
|
132
|
+
"ich9-uhci1",
|
|
133
|
+
"ich9-uhci2",
|
|
134
|
+
"ich9-uhci3",
|
|
135
|
+
"vt82c686b-uhci",
|
|
136
|
+
"pci-ohci",
|
|
137
|
+
"nec-xhci",
|
|
138
|
+
"none",
|
|
139
|
+
"qusb1",
|
|
140
|
+
"qusb2",
|
|
141
|
+
"qemu-xhci",
|
|
142
|
+
]
|
|
143
|
+
| None
|
|
144
|
+
) = attr(name="model", default=None)
|
|
145
|
+
ports: int | None = attr(name="ports", default=None, ge=0)
|
|
146
|
+
master: UsbMaster | None = element(tag="master", default=None)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class IdeController(_ControllerBase, tag="controller"):
|
|
150
|
+
"""``type='ide'``: an IDE controller."""
|
|
151
|
+
|
|
152
|
+
type: Literal["ide"] = attr(name="type")
|
|
153
|
+
model: Literal["piix3", "piix4", "ich6"] | None = attr(name="model", default=None)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class PciControllerModel(LibvirtXmlModel, tag="model"):
|
|
157
|
+
"""``<model>`` of a PCI controller: the exact emulated device. Since 1.2.19."""
|
|
158
|
+
|
|
159
|
+
name: Literal[
|
|
160
|
+
"spapr-pci-host-bridge",
|
|
161
|
+
"pci-bridge",
|
|
162
|
+
"i82801b11-bridge",
|
|
163
|
+
"pcie-pci-bridge",
|
|
164
|
+
"ioh3420",
|
|
165
|
+
"pcie-root-port",
|
|
166
|
+
"x3130-upstream",
|
|
167
|
+
"xio3130-downstream",
|
|
168
|
+
"pxb",
|
|
169
|
+
"pxb-pcie",
|
|
170
|
+
] = attr(name="name")
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class PciControllerTarget(LibvirtXmlModel, tag="target"):
|
|
174
|
+
"""``<target>`` of a PCI controller: guest-visible settings."""
|
|
175
|
+
|
|
176
|
+
chassis_nr: HexNumber | None = attr(name="chassisNr", default=None)
|
|
177
|
+
chassis: HexNumber | None = attr(name="chassis", default=None)
|
|
178
|
+
port: HexNumber | None = attr(name="port", default=None)
|
|
179
|
+
bus_nr: HexNumber | None = attr(name="busNr", default=None)
|
|
180
|
+
index: HexNumber | None = attr(name="index", default=None)
|
|
181
|
+
hotplug: OnOff | None = attr(name="hotplug", default=None)
|
|
182
|
+
mem_reserve: int | None = attr(
|
|
183
|
+
name="memReserve", default=None, ge=0, description="KiB. Since 10.3.0."
|
|
184
|
+
)
|
|
185
|
+
node: int | None = element(
|
|
186
|
+
tag="node", default=None, ge=0, description="NUMA node of an expander bus."
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class PciHole64(LibvirtXmlModel, tag="pcihole64"):
|
|
191
|
+
"""``<pcihole64>``: size of the 64-bit PCI hole. Since 1.1.2."""
|
|
192
|
+
|
|
193
|
+
value: int = Field(ge=0, description="Element text: the size, in ``unit``.")
|
|
194
|
+
unit: SizeUnit | None = attr(name="unit", default=None)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
class PciController(_ControllerBase, tag="controller"):
|
|
198
|
+
"""``type='pci'``: a PCI or PCIe root, bridge, port or expander bus."""
|
|
199
|
+
|
|
200
|
+
type: Literal["pci"] = attr(name="type")
|
|
201
|
+
model: (
|
|
202
|
+
Literal[
|
|
203
|
+
"pci-root",
|
|
204
|
+
"pcie-root",
|
|
205
|
+
"pci-bridge",
|
|
206
|
+
"dmi-to-pci-bridge",
|
|
207
|
+
"pcie-to-pci-bridge",
|
|
208
|
+
"pcie-root-port",
|
|
209
|
+
"pcie-switch-upstream-port",
|
|
210
|
+
"pcie-switch-downstream-port",
|
|
211
|
+
"pci-expander-bus",
|
|
212
|
+
"pcie-expander-bus",
|
|
213
|
+
]
|
|
214
|
+
| None
|
|
215
|
+
) = attr(name="model", default=None)
|
|
216
|
+
model_info: PciControllerModel | None = element(tag="model", default=None)
|
|
217
|
+
target: PciControllerTarget | None = element(tag="target", default=None)
|
|
218
|
+
pcihole64: PciHole64 | None = element(
|
|
219
|
+
tag="pcihole64", default=None, description="Only on root controllers."
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class VirtioSerialController(_ControllerBase, tag="controller"):
|
|
224
|
+
"""``type='virtio-serial'``: ports for ``<channel>`` and ``<console>``."""
|
|
225
|
+
|
|
226
|
+
type: Literal["virtio-serial"] = attr(name="type")
|
|
227
|
+
model: (
|
|
228
|
+
Literal["virtio", "virtio-transitional", "virtio-non-transitional"] | None
|
|
229
|
+
) = attr(name="model", default=None)
|
|
230
|
+
ports: int | None = attr(name="ports", default=None, ge=0)
|
|
231
|
+
vectors: int | None = attr(name="vectors", default=None, ge=0)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
class XenbusController(_ControllerBase, tag="controller"):
|
|
235
|
+
"""``type='xenbus'``: the Xen paravirtual bus."""
|
|
236
|
+
|
|
237
|
+
type: Literal["xenbus"] = attr(name="type")
|
|
238
|
+
max_grant_frames: int | None = attr(name="maxGrantFrames", default=None, ge=0)
|
|
239
|
+
max_event_channels: int | None = attr(name="maxEventChannels", default=None, ge=0)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class NvmeController(_ControllerBase, tag="controller"):
|
|
243
|
+
"""``type='nvme'``: an NVMe controller. Since 11.5.0."""
|
|
244
|
+
|
|
245
|
+
type: Literal["nvme"] = attr(name="type")
|
|
246
|
+
serial: str | None = element(tag="serial", default=None)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
Controller = (
|
|
250
|
+
FdcController
|
|
251
|
+
| SataController
|
|
252
|
+
| CcidController
|
|
253
|
+
| IsaController
|
|
254
|
+
| ScsiController
|
|
255
|
+
| UsbController
|
|
256
|
+
| IdeController
|
|
257
|
+
| PciController
|
|
258
|
+
| VirtioSerialController
|
|
259
|
+
| XenbusController
|
|
260
|
+
| NvmeController
|
|
261
|
+
)
|
|
262
|
+
"""Any ``<controller>``; the variant is chosen by its ``type`` attribute."""
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""``<devices>``: the container of all guest devices.
|
|
2
|
+
|
|
3
|
+
Device kinds not modelled yet are ignored on parsing; the corpus round-trip
|
|
4
|
+
report lists them.
|
|
5
|
+
|
|
6
|
+
See https://libvirt.org/formatdomain.html#devices
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from pydantic_xml import element
|
|
10
|
+
|
|
11
|
+
from libvirtpy.xml._base import LibvirtXmlModel
|
|
12
|
+
from libvirtpy.xml.domain.devices.audio import Audio
|
|
13
|
+
from libvirtpy.xml.domain.devices.chardev import Channel, Console, Parallel, Serial
|
|
14
|
+
from libvirtpy.xml.domain.devices.controller import Controller
|
|
15
|
+
from libvirtpy.xml.domain.devices.disk import Disk
|
|
16
|
+
from libvirtpy.xml.domain.devices.filesystem import Filesystem
|
|
17
|
+
from libvirtpy.xml.domain.devices.graphics import Graphics
|
|
18
|
+
from libvirtpy.xml.domain.devices.hostdev import Hostdev
|
|
19
|
+
from libvirtpy.xml.domain.devices.input import Input
|
|
20
|
+
from libvirtpy.xml.domain.devices.interface import Interface
|
|
21
|
+
from libvirtpy.xml.domain.devices.iommu import Iommu
|
|
22
|
+
from libvirtpy.xml.domain.devices.memballoon import Memballoon
|
|
23
|
+
from libvirtpy.xml.domain.devices.memory_device import MemoryDevice
|
|
24
|
+
from libvirtpy.xml.domain.devices.misc import (
|
|
25
|
+
Crypto,
|
|
26
|
+
Lease,
|
|
27
|
+
Panic,
|
|
28
|
+
Pstore,
|
|
29
|
+
Rng,
|
|
30
|
+
Vsock,
|
|
31
|
+
Watchdog,
|
|
32
|
+
)
|
|
33
|
+
from libvirtpy.xml.domain.devices.nvram import NvramDevice
|
|
34
|
+
from libvirtpy.xml.domain.devices.shmem import Shmem
|
|
35
|
+
from libvirtpy.xml.domain.devices.sound import Sound
|
|
36
|
+
from libvirtpy.xml.domain.devices.tpm import Tpm
|
|
37
|
+
from libvirtpy.xml.domain.devices.usb import Hub, Redirdev, RedirFilter, Smartcard
|
|
38
|
+
from libvirtpy.xml.domain.devices.video import Video
|
|
39
|
+
|
|
40
|
+
__all__ = ["Devices"]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class Devices(LibvirtXmlModel, tag="devices"):
|
|
44
|
+
"""``<devices>``: one list per device kind, in document order per kind."""
|
|
45
|
+
|
|
46
|
+
emulator: str | None = element(
|
|
47
|
+
tag="emulator", default=None, description="Path of the device model binary."
|
|
48
|
+
)
|
|
49
|
+
disks: list[Disk] = element(tag="disk", default_factory=list)
|
|
50
|
+
audios: list[Audio] = element(tag="audio", default_factory=list)
|
|
51
|
+
interfaces: list[Interface] = element(tag="interface", default_factory=list)
|
|
52
|
+
graphics: list[Graphics] = element(tag="graphics", default_factory=list)
|
|
53
|
+
serials: list[Serial] = element(tag="serial", default_factory=list)
|
|
54
|
+
consoles: list[Console] = element(tag="console", default_factory=list)
|
|
55
|
+
parallels: list[Parallel] = element(tag="parallel", default_factory=list)
|
|
56
|
+
channels: list[Channel] = element(tag="channel", default_factory=list)
|
|
57
|
+
rngs: list[Rng] = element(tag="rng", default_factory=list)
|
|
58
|
+
watchdogs: list[Watchdog] = element(tag="watchdog", default_factory=list)
|
|
59
|
+
panics: list[Panic] = element(tag="panic", default_factory=list)
|
|
60
|
+
hostdevs: list[Hostdev] = element(tag="hostdev", default_factory=list)
|
|
61
|
+
filesystems: list[Filesystem] = element(tag="filesystem", default_factory=list)
|
|
62
|
+
sounds: list[Sound] = element(tag="sound", default_factory=list)
|
|
63
|
+
smartcards: list[Smartcard] = element(tag="smartcard", default_factory=list)
|
|
64
|
+
hubs: list[Hub] = element(tag="hub", default_factory=list)
|
|
65
|
+
redirdevs: list[Redirdev] = element(tag="redirdev", default_factory=list)
|
|
66
|
+
redirfilter: RedirFilter | None = element(tag="redirfilter", default=None)
|
|
67
|
+
tpms: list[Tpm] = element(tag="tpm", default_factory=list)
|
|
68
|
+
shmems: list[Shmem] = element(tag="shmem", default_factory=list)
|
|
69
|
+
memories: list[MemoryDevice] = element(tag="memory", default_factory=list)
|
|
70
|
+
crypto: Crypto | None = element(tag="crypto", default=None)
|
|
71
|
+
leases: list[Lease] = element(tag="lease", default_factory=list)
|
|
72
|
+
iommus: list[Iommu] = element(tag="iommu", default_factory=list)
|
|
73
|
+
vsock: Vsock | None = element(tag="vsock", default=None)
|
|
74
|
+
pstore: Pstore | None = element(tag="pstore", default=None)
|
|
75
|
+
controllers: list[Controller] = element(tag="controller", default_factory=list)
|
|
76
|
+
inputs: list[Input] = element(tag="input", default_factory=list)
|
|
77
|
+
videos: list[Video] = element(tag="video", default_factory=list)
|
|
78
|
+
memballoon: Memballoon | None = element(tag="memballoon", default=None)
|
|
79
|
+
nvram: NvramDevice | None = element(tag="nvram", default=None)
|