]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
dosc: schema: fix usb source address device attribute format
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 21 Jan 2019 08:40:09 +0000 (11:40 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Wed, 6 Feb 2019 07:48:48 +0000 (10:48 +0300)
Device attribute does not have dotted "portAddr" format. Instead it
has single number format described but "usbAddr" which corresponds
to device parsing code in virDomainHostdevSubsysUSBDefParseXML.

Looks like [1] mistakenly changed device format for hostdev devices.
And [2] copy-n-paste this for hostdev network interfaces.

[1] 31710a53 Modify USB port to be defined as a port path
[2] 3b1c191f conf: parse/format type='hostdev' network interfaces

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
docs/schemas/domaincommon.rng

index 7672639cb6ea760d03f42cd1b7e8eacac88d5d15..ba80440c7233fbce58a6cfbbc4930ef32aad8e99 100644 (file)
                         <ref name="usbAddr"/>
                       </attribute>
                       <attribute name="device">
-                        <ref name="usbPort"/>
+                        <ref name="usbAddr"/>
                       </attribute>
                     </group>
                   </choice>
         <ref name="usbAddr"/>
       </attribute>
       <attribute name="device">
-        <ref name="usbPort"/>
+        <ref name="usbAddr"/>
       </attribute>
     </element>
   </define>