mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 19:45:21 +00:00
Correct invalid RNG schemas
The 'trang' utility, which is able to transform '.rng' files into '.rnc' files, reported some errors in our schemas that weren't caught by the tools we use in the build. I haven't added a test for this, but the validity can be checked by the following command: trang -I rng -O rnc domain.rng domain.rnc There were unescaped minuses in regular expressions and we were constraining int (which is by default in the range of [-2^31;2^31-1] to maximum of 2^32. But what we wanted was exactly an unsignedInt.
This commit is contained in:
parent
03122d7baf
commit
28933c5574
@ -3929,7 +3929,7 @@
|
|||||||
</define>
|
</define>
|
||||||
<define name='aliasName'>
|
<define name='aliasName'>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">[a-zA-Z0-9_-]+</param>
|
<param name="pattern">[a-zA-Z0-9_\-]+</param>
|
||||||
</data>
|
</data>
|
||||||
</define>
|
</define>
|
||||||
<define name='alias'>
|
<define name='alias'>
|
||||||
|
@ -308,25 +308,25 @@
|
|||||||
<choice>
|
<choice>
|
||||||
<value>root</value>
|
<value>root</value>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">mac[a-zA-Z0-9_\.:-]{0,9}</param>
|
<param name="pattern">mac[a-zA-Z0-9_\.:\-]{0,9}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">stp[a-zA-Z0-9_\.:-]{0,9}</param>
|
<param name="pattern">stp[a-zA-Z0-9_\.:\-]{0,9}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">vlan[a-zA-Z0-9_\.:-]{0,8}</param>
|
<param name="pattern">vlan[a-zA-Z0-9_\.:\-]{0,8}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">arp[a-zA-Z0-9_\.:-]{0,9}</param>
|
<param name="pattern">arp[a-zA-Z0-9_\.:\-]{0,9}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">rarp[a-zA-Z0-9_\.:-]{0,8}</param>
|
<param name="pattern">rarp[a-zA-Z0-9_\.:\-]{0,8}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">ipv4[a-zA-Z0-9_\.:-]{0,8}</param>
|
<param name="pattern">ipv4[a-zA-Z0-9_\.:\-]{0,8}</param>
|
||||||
</data>
|
</data>
|
||||||
<data type="string">
|
<data type="string">
|
||||||
<param name="pattern">ipv6[a-zA-Z0-9_\.:-]{0,8}</param>
|
<param name="pattern">ipv6[a-zA-Z0-9_\.:\-]{0,8}</param>
|
||||||
</data>
|
</data>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
@ -950,10 +950,7 @@
|
|||||||
<param name="pattern">0x[0-9a-fA-F]{1,8}</param>
|
<param name="pattern">0x[0-9a-fA-F]{1,8}</param>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<data type="int">
|
<data type="unsignedInt"/>
|
||||||
<param name="minInclusive">0</param>
|
|
||||||
<param name="maxInclusive">4294967295</param>
|
|
||||||
</data>
|
|
||||||
</choice>
|
</choice>
|
||||||
</define>
|
</define>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user