From: Maximilian Martin <maximilian_mar...@gmx.de> Adds USB bus/port addressing the domain XML file schema. Optionally, the physical USB port can be declared instead of the USB device address.
Signed-off-by: Maximilian Martin <maximilian_mar...@gmx.de> --- src/conf/schemas/domaincommon.rng | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng index e369fb6e81..438bdc6ef6 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -6785,9 +6785,14 @@ <attribute name="bus"> <ref name="usbAddr"/> </attribute> - <attribute name="device"> - <ref name="usbAddr"/> - </attribute> + <choice> + <attribute name="device"> + <ref name="usbAddr"/> + </attribute> + <attribute name="port"> + <ref name="usbPort"/> + </attribute> + </choice> </element> </define> <define name="scsiaddress"> -- 2.39.5