Even though 'id' attribute is output-only, we should accept xml
files containing it.
Resolves:
https://bugzilla.redhat.com/show_bug.cgi?id=1941594
Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
docs/formatdomain.rst | 2 +-
docs/schemas/domaincommon.rng | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 25e6bf73ba..d3c91c2a6d 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -850,7 +850,7 @@ CPU Tuning
to which vCPUs this allocation applies. A vCPU can only be member of one
``cachetune`` element allocation. The vCPUs specified by cachetune can be
identical with those in memorytune, however they are not allowed to overlap.
- Supported subelements are:
+ The optional attribute ``id`` is output only. Supported subelements are:
``cache``
This optional element controls the allocation of CPU cache and has the
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 5ea14b6dbf..c6643bbc7f 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1006,6 +1006,11 @@
<attribute name="vcpus">
<ref name="cpuset"/>
</attribute>
+ <optional>
+ <attribute name="id">
+ <data type="string"/>
+ </attribute>
+ </optional>
<oneOrMore>
<choice>
<element name="cache">
--
2.31.1