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,495 @@
|
|
|
1
|
+
"""Models for ``<devices>``. See https://libvirt.org/formatdomain.html#devices"""
|
|
2
|
+
|
|
3
|
+
from libvirtpy.xml._shared.network import (
|
|
4
|
+
BandwidthLimit,
|
|
5
|
+
FilterParameter,
|
|
6
|
+
FilterRef,
|
|
7
|
+
Inbound,
|
|
8
|
+
Outbound,
|
|
9
|
+
Route,
|
|
10
|
+
VirtualPort,
|
|
11
|
+
VirtualPortParameters,
|
|
12
|
+
Vlan,
|
|
13
|
+
VlanTag,
|
|
14
|
+
)
|
|
15
|
+
from libvirtpy.xml.domain.devices.address import (
|
|
16
|
+
Address,
|
|
17
|
+
CcidAddress,
|
|
18
|
+
CcwAddress,
|
|
19
|
+
DimmAddress,
|
|
20
|
+
DriveAddress,
|
|
21
|
+
IsaAddress,
|
|
22
|
+
PciAddress,
|
|
23
|
+
SpaprVioAddress,
|
|
24
|
+
UnassignedAddress,
|
|
25
|
+
UsbAddress,
|
|
26
|
+
VirtioMmioAddress,
|
|
27
|
+
VirtioSerialAddress,
|
|
28
|
+
Zpci,
|
|
29
|
+
)
|
|
30
|
+
from libvirtpy.xml.domain.devices.audio import (
|
|
31
|
+
AlsaAudio,
|
|
32
|
+
AlsaStream,
|
|
33
|
+
Audio,
|
|
34
|
+
AudioSettings,
|
|
35
|
+
AudioStream,
|
|
36
|
+
CoreaudioAudio,
|
|
37
|
+
CoreaudioStream,
|
|
38
|
+
DbusAudio,
|
|
39
|
+
FileAudio,
|
|
40
|
+
JackAudio,
|
|
41
|
+
JackStream,
|
|
42
|
+
NoneAudio,
|
|
43
|
+
OssAudio,
|
|
44
|
+
OssStream,
|
|
45
|
+
PipewireAudio,
|
|
46
|
+
PipewireStream,
|
|
47
|
+
PulseaudioAudio,
|
|
48
|
+
PulseaudioStream,
|
|
49
|
+
SdlAudio,
|
|
50
|
+
SdlStream,
|
|
51
|
+
SpiceAudio,
|
|
52
|
+
)
|
|
53
|
+
from libvirtpy.xml.domain.devices.chardev import (
|
|
54
|
+
Channel,
|
|
55
|
+
ChannelTarget,
|
|
56
|
+
CharDevLog,
|
|
57
|
+
CharDevProtocol,
|
|
58
|
+
CharDevSource,
|
|
59
|
+
CharDevTarget,
|
|
60
|
+
CharDevTargetModel,
|
|
61
|
+
CharDevType,
|
|
62
|
+
Console,
|
|
63
|
+
Parallel,
|
|
64
|
+
Serial,
|
|
65
|
+
)
|
|
66
|
+
from libvirtpy.xml.domain.devices.common import (
|
|
67
|
+
Alias,
|
|
68
|
+
DeviceAcpi,
|
|
69
|
+
DeviceBoot,
|
|
70
|
+
DriverIothread,
|
|
71
|
+
DriverIothreadQueue,
|
|
72
|
+
DriverIothreads,
|
|
73
|
+
VirtioDriverOptions,
|
|
74
|
+
)
|
|
75
|
+
from libvirtpy.xml.domain.devices.controller import (
|
|
76
|
+
CcidController,
|
|
77
|
+
Controller,
|
|
78
|
+
ControllerDriver,
|
|
79
|
+
FdcController,
|
|
80
|
+
IdeController,
|
|
81
|
+
IsaController,
|
|
82
|
+
NvmeController,
|
|
83
|
+
PciController,
|
|
84
|
+
PciControllerModel,
|
|
85
|
+
PciControllerTarget,
|
|
86
|
+
PciHole64,
|
|
87
|
+
SataController,
|
|
88
|
+
ScsiController,
|
|
89
|
+
UsbController,
|
|
90
|
+
UsbMaster,
|
|
91
|
+
VirtioSerialController,
|
|
92
|
+
XenbusController,
|
|
93
|
+
)
|
|
94
|
+
from libvirtpy.xml.domain.devices.devices import (
|
|
95
|
+
Devices,
|
|
96
|
+
)
|
|
97
|
+
from libvirtpy.xml.domain.devices.disk import (
|
|
98
|
+
BackingStore,
|
|
99
|
+
BlockBackingStore,
|
|
100
|
+
BlockDisk,
|
|
101
|
+
BlockIo,
|
|
102
|
+
BlockMirror,
|
|
103
|
+
CtlBackingStore,
|
|
104
|
+
CtlDisk,
|
|
105
|
+
CtlMirror,
|
|
106
|
+
DirBackingStore,
|
|
107
|
+
DirDisk,
|
|
108
|
+
DirMirror,
|
|
109
|
+
Disk,
|
|
110
|
+
DiskDriver,
|
|
111
|
+
DiskTarget,
|
|
112
|
+
FileBackingStore,
|
|
113
|
+
FileDisk,
|
|
114
|
+
FileMirror,
|
|
115
|
+
Geometry,
|
|
116
|
+
IoTune,
|
|
117
|
+
Mirror,
|
|
118
|
+
NetworkBackingStore,
|
|
119
|
+
NetworkDisk,
|
|
120
|
+
NetworkMirror,
|
|
121
|
+
NvmeBackingStore,
|
|
122
|
+
NvmeDisk,
|
|
123
|
+
NvmeMirror,
|
|
124
|
+
ThrottleFilter,
|
|
125
|
+
ThrottleFilters,
|
|
126
|
+
Transient,
|
|
127
|
+
VhostUserBackingStore,
|
|
128
|
+
VhostUserDisk,
|
|
129
|
+
VhostUserMirror,
|
|
130
|
+
VhostVdpaBackingStore,
|
|
131
|
+
VhostVdpaDisk,
|
|
132
|
+
VhostVdpaMirror,
|
|
133
|
+
VolumeBackingStore,
|
|
134
|
+
VolumeDisk,
|
|
135
|
+
VolumeMirror,
|
|
136
|
+
)
|
|
137
|
+
from libvirtpy.xml.domain.devices.filesystem import (
|
|
138
|
+
BindFilesystem,
|
|
139
|
+
BlockFilesystem,
|
|
140
|
+
FileFilesystem,
|
|
141
|
+
Filesystem,
|
|
142
|
+
FilesystemBinary,
|
|
143
|
+
FilesystemDriver,
|
|
144
|
+
MountFilesystem,
|
|
145
|
+
RamFilesystem,
|
|
146
|
+
TemplateFilesystem,
|
|
147
|
+
)
|
|
148
|
+
from libvirtpy.xml.domain.devices.graphics import (
|
|
149
|
+
AddressListen,
|
|
150
|
+
DbusGraphics,
|
|
151
|
+
DesktopGraphics,
|
|
152
|
+
EglHeadlessGraphics,
|
|
153
|
+
Graphics,
|
|
154
|
+
GraphicsAudio,
|
|
155
|
+
GraphicsGl,
|
|
156
|
+
Listen,
|
|
157
|
+
NetworkListen,
|
|
158
|
+
NoneListen,
|
|
159
|
+
RdpGraphics,
|
|
160
|
+
SdlGraphics,
|
|
161
|
+
SocketListen,
|
|
162
|
+
SpiceChannel,
|
|
163
|
+
SpiceGraphics,
|
|
164
|
+
VncGraphics,
|
|
165
|
+
)
|
|
166
|
+
from libvirtpy.xml.domain.devices.hostdev import (
|
|
167
|
+
Hostdev,
|
|
168
|
+
HostdevDriver,
|
|
169
|
+
MdevHostdev,
|
|
170
|
+
MiscHostdev,
|
|
171
|
+
NetHostdev,
|
|
172
|
+
PciHostdev,
|
|
173
|
+
ScsiHostdev,
|
|
174
|
+
ScsiHostHostdev,
|
|
175
|
+
StorageHostdev,
|
|
176
|
+
UsbHostdev,
|
|
177
|
+
)
|
|
178
|
+
from libvirtpy.xml.domain.devices.input import (
|
|
179
|
+
EvdevInput,
|
|
180
|
+
EvdevInputSource,
|
|
181
|
+
HidInput,
|
|
182
|
+
Input,
|
|
183
|
+
InputDriver,
|
|
184
|
+
PassthroughInput,
|
|
185
|
+
PassthroughInputSource,
|
|
186
|
+
)
|
|
187
|
+
from libvirtpy.xml.domain.devices.interface import (
|
|
188
|
+
Bandwidth,
|
|
189
|
+
BridgeInterface,
|
|
190
|
+
ClientInterface,
|
|
191
|
+
DirectInterface,
|
|
192
|
+
EthernetInterface,
|
|
193
|
+
HostdevInterface,
|
|
194
|
+
Interface,
|
|
195
|
+
InterfaceBackend,
|
|
196
|
+
InterfaceDriver,
|
|
197
|
+
InterfaceMac,
|
|
198
|
+
InternalInterface,
|
|
199
|
+
McastInterface,
|
|
200
|
+
NetworkInterface,
|
|
201
|
+
NullInterface,
|
|
202
|
+
ServerInterface,
|
|
203
|
+
UdpInterface,
|
|
204
|
+
UserInterface,
|
|
205
|
+
VdpaInterface,
|
|
206
|
+
VdsInterface,
|
|
207
|
+
VhostUserInterface,
|
|
208
|
+
)
|
|
209
|
+
from libvirtpy.xml.domain.devices.iommu import (
|
|
210
|
+
Iommu,
|
|
211
|
+
IommuDriver,
|
|
212
|
+
IommuGranule,
|
|
213
|
+
)
|
|
214
|
+
from libvirtpy.xml.domain.devices.memballoon import (
|
|
215
|
+
Memballoon,
|
|
216
|
+
MemballoonDriver,
|
|
217
|
+
MemballoonStats,
|
|
218
|
+
)
|
|
219
|
+
from libvirtpy.xml.domain.devices.memory_device import (
|
|
220
|
+
MemoryDevice,
|
|
221
|
+
MemoryDeviceSource,
|
|
222
|
+
MemoryDeviceTarget,
|
|
223
|
+
)
|
|
224
|
+
from libvirtpy.xml.domain.devices.misc import (
|
|
225
|
+
Crypto,
|
|
226
|
+
Lease,
|
|
227
|
+
Panic,
|
|
228
|
+
Pstore,
|
|
229
|
+
Rng,
|
|
230
|
+
RngBackend,
|
|
231
|
+
RngDriver,
|
|
232
|
+
RngRate,
|
|
233
|
+
Vsock,
|
|
234
|
+
Watchdog,
|
|
235
|
+
)
|
|
236
|
+
from libvirtpy.xml.domain.devices.nvram import (
|
|
237
|
+
NvramDevice,
|
|
238
|
+
)
|
|
239
|
+
from libvirtpy.xml.domain.devices.shmem import (
|
|
240
|
+
Shmem,
|
|
241
|
+
ShmemMsi,
|
|
242
|
+
ShmemServer,
|
|
243
|
+
ShmemSize,
|
|
244
|
+
)
|
|
245
|
+
from libvirtpy.xml.domain.devices.sound import (
|
|
246
|
+
Sound,
|
|
247
|
+
SoundCodec,
|
|
248
|
+
SoundDriver,
|
|
249
|
+
)
|
|
250
|
+
from libvirtpy.xml.domain.devices.tpm import (
|
|
251
|
+
EmulatorTpmBackend,
|
|
252
|
+
ExternalTpmBackend,
|
|
253
|
+
PassthroughTpmBackend,
|
|
254
|
+
Tpm,
|
|
255
|
+
TpmBackend,
|
|
256
|
+
)
|
|
257
|
+
from libvirtpy.xml.domain.devices.usb import (
|
|
258
|
+
Hub,
|
|
259
|
+
Redirdev,
|
|
260
|
+
RedirFilter,
|
|
261
|
+
Smartcard,
|
|
262
|
+
UsbDeviceFilter,
|
|
263
|
+
)
|
|
264
|
+
from libvirtpy.xml.domain.devices.video import (
|
|
265
|
+
Video,
|
|
266
|
+
VideoAcceleration,
|
|
267
|
+
VideoDriver,
|
|
268
|
+
VideoModel,
|
|
269
|
+
VideoResolution,
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
__all__ = [
|
|
273
|
+
"Address",
|
|
274
|
+
"AddressListen",
|
|
275
|
+
"Alias",
|
|
276
|
+
"AlsaAudio",
|
|
277
|
+
"AlsaStream",
|
|
278
|
+
"Audio",
|
|
279
|
+
"AudioSettings",
|
|
280
|
+
"AudioStream",
|
|
281
|
+
"BackingStore",
|
|
282
|
+
"Bandwidth",
|
|
283
|
+
"BandwidthLimit",
|
|
284
|
+
"BindFilesystem",
|
|
285
|
+
"BlockBackingStore",
|
|
286
|
+
"BlockDisk",
|
|
287
|
+
"BlockFilesystem",
|
|
288
|
+
"BlockIo",
|
|
289
|
+
"BlockMirror",
|
|
290
|
+
"BridgeInterface",
|
|
291
|
+
"CcidAddress",
|
|
292
|
+
"CcidController",
|
|
293
|
+
"CcwAddress",
|
|
294
|
+
"Channel",
|
|
295
|
+
"ChannelTarget",
|
|
296
|
+
"CharDevLog",
|
|
297
|
+
"CharDevProtocol",
|
|
298
|
+
"CharDevSource",
|
|
299
|
+
"CharDevTarget",
|
|
300
|
+
"CharDevTargetModel",
|
|
301
|
+
"CharDevType",
|
|
302
|
+
"ClientInterface",
|
|
303
|
+
"Console",
|
|
304
|
+
"Controller",
|
|
305
|
+
"ControllerDriver",
|
|
306
|
+
"CoreaudioAudio",
|
|
307
|
+
"CoreaudioStream",
|
|
308
|
+
"Crypto",
|
|
309
|
+
"CtlBackingStore",
|
|
310
|
+
"CtlDisk",
|
|
311
|
+
"CtlMirror",
|
|
312
|
+
"DbusAudio",
|
|
313
|
+
"DbusGraphics",
|
|
314
|
+
"DesktopGraphics",
|
|
315
|
+
"DeviceAcpi",
|
|
316
|
+
"DeviceBoot",
|
|
317
|
+
"Devices",
|
|
318
|
+
"DimmAddress",
|
|
319
|
+
"DirBackingStore",
|
|
320
|
+
"DirDisk",
|
|
321
|
+
"DirMirror",
|
|
322
|
+
"DirectInterface",
|
|
323
|
+
"Disk",
|
|
324
|
+
"DiskDriver",
|
|
325
|
+
"DiskTarget",
|
|
326
|
+
"DriveAddress",
|
|
327
|
+
"DriverIothread",
|
|
328
|
+
"DriverIothreadQueue",
|
|
329
|
+
"DriverIothreads",
|
|
330
|
+
"EglHeadlessGraphics",
|
|
331
|
+
"EmulatorTpmBackend",
|
|
332
|
+
"EthernetInterface",
|
|
333
|
+
"EvdevInput",
|
|
334
|
+
"EvdevInputSource",
|
|
335
|
+
"ExternalTpmBackend",
|
|
336
|
+
"FdcController",
|
|
337
|
+
"FileAudio",
|
|
338
|
+
"FileBackingStore",
|
|
339
|
+
"FileDisk",
|
|
340
|
+
"FileFilesystem",
|
|
341
|
+
"FileMirror",
|
|
342
|
+
"Filesystem",
|
|
343
|
+
"FilesystemBinary",
|
|
344
|
+
"FilesystemDriver",
|
|
345
|
+
"FilterParameter",
|
|
346
|
+
"FilterRef",
|
|
347
|
+
"Geometry",
|
|
348
|
+
"Graphics",
|
|
349
|
+
"GraphicsAudio",
|
|
350
|
+
"GraphicsGl",
|
|
351
|
+
"HidInput",
|
|
352
|
+
"Hostdev",
|
|
353
|
+
"HostdevDriver",
|
|
354
|
+
"HostdevInterface",
|
|
355
|
+
"Hub",
|
|
356
|
+
"IdeController",
|
|
357
|
+
"Inbound",
|
|
358
|
+
"Input",
|
|
359
|
+
"InputDriver",
|
|
360
|
+
"Interface",
|
|
361
|
+
"InterfaceBackend",
|
|
362
|
+
"InterfaceDriver",
|
|
363
|
+
"InterfaceMac",
|
|
364
|
+
"InternalInterface",
|
|
365
|
+
"IoTune",
|
|
366
|
+
"Iommu",
|
|
367
|
+
"IommuDriver",
|
|
368
|
+
"IommuGranule",
|
|
369
|
+
"IsaAddress",
|
|
370
|
+
"IsaController",
|
|
371
|
+
"JackAudio",
|
|
372
|
+
"JackStream",
|
|
373
|
+
"Lease",
|
|
374
|
+
"Listen",
|
|
375
|
+
"McastInterface",
|
|
376
|
+
"MdevHostdev",
|
|
377
|
+
"Memballoon",
|
|
378
|
+
"MemballoonDriver",
|
|
379
|
+
"MemballoonStats",
|
|
380
|
+
"MemoryDevice",
|
|
381
|
+
"MemoryDeviceSource",
|
|
382
|
+
"MemoryDeviceTarget",
|
|
383
|
+
"Mirror",
|
|
384
|
+
"MiscHostdev",
|
|
385
|
+
"MountFilesystem",
|
|
386
|
+
"NetHostdev",
|
|
387
|
+
"NetworkBackingStore",
|
|
388
|
+
"NetworkDisk",
|
|
389
|
+
"NetworkInterface",
|
|
390
|
+
"NetworkListen",
|
|
391
|
+
"NetworkMirror",
|
|
392
|
+
"NoneAudio",
|
|
393
|
+
"NoneListen",
|
|
394
|
+
"NullInterface",
|
|
395
|
+
"NvmeBackingStore",
|
|
396
|
+
"NvmeController",
|
|
397
|
+
"NvmeDisk",
|
|
398
|
+
"NvmeMirror",
|
|
399
|
+
"NvramDevice",
|
|
400
|
+
"OssAudio",
|
|
401
|
+
"OssStream",
|
|
402
|
+
"Outbound",
|
|
403
|
+
"Panic",
|
|
404
|
+
"Parallel",
|
|
405
|
+
"PassthroughInput",
|
|
406
|
+
"PassthroughInputSource",
|
|
407
|
+
"PassthroughTpmBackend",
|
|
408
|
+
"PciAddress",
|
|
409
|
+
"PciController",
|
|
410
|
+
"PciControllerModel",
|
|
411
|
+
"PciControllerTarget",
|
|
412
|
+
"PciHole64",
|
|
413
|
+
"PciHostdev",
|
|
414
|
+
"PipewireAudio",
|
|
415
|
+
"PipewireStream",
|
|
416
|
+
"Pstore",
|
|
417
|
+
"PulseaudioAudio",
|
|
418
|
+
"PulseaudioStream",
|
|
419
|
+
"RamFilesystem",
|
|
420
|
+
"RdpGraphics",
|
|
421
|
+
"RedirFilter",
|
|
422
|
+
"Redirdev",
|
|
423
|
+
"Rng",
|
|
424
|
+
"RngBackend",
|
|
425
|
+
"RngDriver",
|
|
426
|
+
"RngRate",
|
|
427
|
+
"Route",
|
|
428
|
+
"SataController",
|
|
429
|
+
"ScsiController",
|
|
430
|
+
"ScsiHostHostdev",
|
|
431
|
+
"ScsiHostdev",
|
|
432
|
+
"SdlAudio",
|
|
433
|
+
"SdlGraphics",
|
|
434
|
+
"SdlStream",
|
|
435
|
+
"Serial",
|
|
436
|
+
"ServerInterface",
|
|
437
|
+
"Shmem",
|
|
438
|
+
"ShmemMsi",
|
|
439
|
+
"ShmemServer",
|
|
440
|
+
"ShmemSize",
|
|
441
|
+
"Smartcard",
|
|
442
|
+
"SocketListen",
|
|
443
|
+
"Sound",
|
|
444
|
+
"SoundCodec",
|
|
445
|
+
"SoundDriver",
|
|
446
|
+
"SpaprVioAddress",
|
|
447
|
+
"SpiceAudio",
|
|
448
|
+
"SpiceChannel",
|
|
449
|
+
"SpiceGraphics",
|
|
450
|
+
"StorageHostdev",
|
|
451
|
+
"TemplateFilesystem",
|
|
452
|
+
"ThrottleFilter",
|
|
453
|
+
"ThrottleFilters",
|
|
454
|
+
"Tpm",
|
|
455
|
+
"TpmBackend",
|
|
456
|
+
"Transient",
|
|
457
|
+
"UdpInterface",
|
|
458
|
+
"UnassignedAddress",
|
|
459
|
+
"UsbAddress",
|
|
460
|
+
"UsbController",
|
|
461
|
+
"UsbDeviceFilter",
|
|
462
|
+
"UsbHostdev",
|
|
463
|
+
"UsbMaster",
|
|
464
|
+
"UserInterface",
|
|
465
|
+
"VdpaInterface",
|
|
466
|
+
"VdsInterface",
|
|
467
|
+
"VhostUserBackingStore",
|
|
468
|
+
"VhostUserDisk",
|
|
469
|
+
"VhostUserInterface",
|
|
470
|
+
"VhostUserMirror",
|
|
471
|
+
"VhostVdpaBackingStore",
|
|
472
|
+
"VhostVdpaDisk",
|
|
473
|
+
"VhostVdpaMirror",
|
|
474
|
+
"Video",
|
|
475
|
+
"VideoAcceleration",
|
|
476
|
+
"VideoDriver",
|
|
477
|
+
"VideoModel",
|
|
478
|
+
"VideoResolution",
|
|
479
|
+
"VirtioDriverOptions",
|
|
480
|
+
"VirtioMmioAddress",
|
|
481
|
+
"VirtioSerialAddress",
|
|
482
|
+
"VirtioSerialController",
|
|
483
|
+
"VirtualPort",
|
|
484
|
+
"VirtualPortParameters",
|
|
485
|
+
"Vlan",
|
|
486
|
+
"VlanTag",
|
|
487
|
+
"VncGraphics",
|
|
488
|
+
"VolumeBackingStore",
|
|
489
|
+
"VolumeDisk",
|
|
490
|
+
"VolumeMirror",
|
|
491
|
+
"Vsock",
|
|
492
|
+
"Watchdog",
|
|
493
|
+
"XenbusController",
|
|
494
|
+
"Zpci",
|
|
495
|
+
]
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"""``<address>``: where a device sits on its bus.
|
|
2
|
+
|
|
3
|
+
Address numbers are kept as strings exactly as written (``0x1f`` or ``31``):
|
|
4
|
+
libvirt accepts hex and decimal forms, and converting them would change the
|
|
5
|
+
document on a round trip.
|
|
6
|
+
|
|
7
|
+
``Address`` is a plain union, not a ``Field(discriminator=...)`` one, like
|
|
8
|
+
every variant union in libvirtpy. With pydantic-xml 2.22 a discriminated
|
|
9
|
+
union crashes on serializing a ``None`` field, and in a list it silently
|
|
10
|
+
drops the element with an unknown ``type`` and every element after it. With
|
|
11
|
+
a plain union the ``type`` literals still make exactly one variant match, and
|
|
12
|
+
an unknown ``type`` is a validation error.
|
|
13
|
+
|
|
14
|
+
See https://libvirt.org/formatdomain.html#device-addresses
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from typing import Literal
|
|
18
|
+
|
|
19
|
+
from pydantic_xml import attr, element
|
|
20
|
+
|
|
21
|
+
from libvirtpy.xml._base import LibvirtXmlModel
|
|
22
|
+
from libvirtpy.xml._types import HexNumber, OnOff
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"Address",
|
|
26
|
+
"CcidAddress",
|
|
27
|
+
"CcwAddress",
|
|
28
|
+
"DimmAddress",
|
|
29
|
+
"DriveAddress",
|
|
30
|
+
"IsaAddress",
|
|
31
|
+
"PciAddress",
|
|
32
|
+
"SpaprVioAddress",
|
|
33
|
+
"UnassignedAddress",
|
|
34
|
+
"UsbAddress",
|
|
35
|
+
"VirtioMmioAddress",
|
|
36
|
+
"VirtioSerialAddress",
|
|
37
|
+
"Zpci",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class Zpci(LibvirtXmlModel, tag="zpci"):
|
|
42
|
+
"""``<zpci>``: s390 PCI identifiers. Since 4.10.0."""
|
|
43
|
+
|
|
44
|
+
uid: HexNumber | None = attr(name="uid", default=None)
|
|
45
|
+
fid: HexNumber | None = attr(name="fid", default=None)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class PciAddress(LibvirtXmlModel, tag="address"):
|
|
49
|
+
"""``type='pci'``: a PCI ``domain:bus:slot.function`` address."""
|
|
50
|
+
|
|
51
|
+
type: Literal["pci"] = attr(name="type")
|
|
52
|
+
domain: HexNumber | None = attr(name="domain", default=None)
|
|
53
|
+
bus: HexNumber | None = attr(name="bus", default=None)
|
|
54
|
+
slot: HexNumber | None = attr(name="slot", default=None)
|
|
55
|
+
function: HexNumber | None = attr(name="function", default=None)
|
|
56
|
+
multifunction: OnOff | None = attr(name="multifunction", default=None)
|
|
57
|
+
zpci: Zpci | None = element(tag="zpci", default=None)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class DriveAddress(LibvirtXmlModel, tag="address"):
|
|
61
|
+
"""``type='drive'``: a disk on an IDE, SCSI, SATA or floppy controller."""
|
|
62
|
+
|
|
63
|
+
type: Literal["drive"] = attr(name="type")
|
|
64
|
+
controller: HexNumber | None = attr(name="controller", default=None)
|
|
65
|
+
bus: HexNumber | None = attr(name="bus", default=None)
|
|
66
|
+
target: HexNumber | None = attr(name="target", default=None)
|
|
67
|
+
unit: HexNumber | None = attr(name="unit", default=None)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class VirtioSerialAddress(LibvirtXmlModel, tag="address"):
|
|
71
|
+
"""``type='virtio-serial'``: a port on a virtio-serial controller."""
|
|
72
|
+
|
|
73
|
+
type: Literal["virtio-serial"] = attr(name="type")
|
|
74
|
+
controller: HexNumber = attr(name="controller")
|
|
75
|
+
bus: HexNumber | None = attr(name="bus", default=None)
|
|
76
|
+
port: HexNumber | None = attr(name="port", default=None)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class CcidAddress(LibvirtXmlModel, tag="address"):
|
|
80
|
+
"""``type='ccid'``: a slot on a smartcard (CCID) controller."""
|
|
81
|
+
|
|
82
|
+
type: Literal["ccid"] = attr(name="type")
|
|
83
|
+
controller: HexNumber = attr(name="controller")
|
|
84
|
+
slot: HexNumber | None = attr(name="slot", default=None)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class UsbAddress(LibvirtXmlModel, tag="address"):
|
|
88
|
+
"""``type='usb'``: a USB bus and port, e.g. ``port='1.2'`` behind a hub."""
|
|
89
|
+
|
|
90
|
+
type: Literal["usb"] = attr(name="type")
|
|
91
|
+
bus: HexNumber = attr(name="bus")
|
|
92
|
+
port: str | None = attr(name="port", default=None)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class SpaprVioAddress(LibvirtXmlModel, tag="address"):
|
|
96
|
+
"""``type='spapr-vio'``: a PowerPC sPAPR VIO device."""
|
|
97
|
+
|
|
98
|
+
type: Literal["spapr-vio"] = attr(name="type")
|
|
99
|
+
reg: HexNumber | None = attr(name="reg", default=None)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class CcwAddress(LibvirtXmlModel, tag="address"):
|
|
103
|
+
"""``type='ccw'``: an s390 channel I/O device."""
|
|
104
|
+
|
|
105
|
+
type: Literal["ccw"] = attr(name="type")
|
|
106
|
+
cssid: HexNumber | None = attr(name="cssid", default=None)
|
|
107
|
+
ssid: HexNumber | None = attr(name="ssid", default=None)
|
|
108
|
+
devno: HexNumber | None = attr(name="devno", default=None)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class IsaAddress(LibvirtXmlModel, tag="address"):
|
|
112
|
+
"""``type='isa'``: an ISA I/O port and IRQ."""
|
|
113
|
+
|
|
114
|
+
type: Literal["isa"] = attr(name="type")
|
|
115
|
+
iobase: HexNumber | None = attr(name="iobase", default=None)
|
|
116
|
+
irq: HexNumber | None = attr(name="irq", default=None)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class VirtioMmioAddress(LibvirtXmlModel, tag="address"):
|
|
120
|
+
"""``type='virtio-mmio'``: a memory mapped virtio device."""
|
|
121
|
+
|
|
122
|
+
type: Literal["virtio-mmio"] = attr(name="type")
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class DimmAddress(LibvirtXmlModel, tag="address"):
|
|
126
|
+
"""``type='dimm'``: a memory module slot."""
|
|
127
|
+
|
|
128
|
+
type: Literal["dimm"] = attr(name="type")
|
|
129
|
+
slot: int | None = attr(name="slot", default=None, ge=0)
|
|
130
|
+
base: HexNumber | None = attr(name="base", default=None)
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
class UnassignedAddress(LibvirtXmlModel, tag="address"):
|
|
134
|
+
"""``type='unassigned'``: a host device the guest does not see. Since 6.0.0."""
|
|
135
|
+
|
|
136
|
+
type: Literal["unassigned"] = attr(name="type")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
Address = (
|
|
140
|
+
PciAddress
|
|
141
|
+
| DriveAddress
|
|
142
|
+
| VirtioSerialAddress
|
|
143
|
+
| CcidAddress
|
|
144
|
+
| UsbAddress
|
|
145
|
+
| SpaprVioAddress
|
|
146
|
+
| CcwAddress
|
|
147
|
+
| IsaAddress
|
|
148
|
+
| VirtioMmioAddress
|
|
149
|
+
| DimmAddress
|
|
150
|
+
| UnassignedAddress
|
|
151
|
+
)
|
|
152
|
+
"""Any device ``<address>``; the variant is chosen by its ``type`` attribute."""
|