From: Peter Krempa <pkrempa@redhat.com> Add a common definition of the 'fdgroup' type used for named FDs passed to a VM. Signed-off-by: Peter Krempa <pkrempa@redhat.com> --- src/conf/schemas/domainbackup.rng | 2 +- src/conf/schemas/domaincommon.rng | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/conf/schemas/domainbackup.rng b/src/conf/schemas/domainbackup.rng index 91cf2a7bbd..7140dd7516 100644 --- a/src/conf/schemas/domainbackup.rng +++ b/src/conf/schemas/domainbackup.rng @@ -94,7 +94,7 @@ <attribute name="transport"> <value>fd</value> </attribute> - <attribute name="fdgroup"/> + <ref name="fdgroupattr"/> </group> </choice> </element> diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng index d1b10c1c5f..9a74e101a9 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -249,6 +249,16 @@ </choice> </define> + <define name="fdgroupattr"> + <attribute name="fdgroup"/> + </define> + + <define name="fdgroup"> + <optional> + <ref name="fdgroupattr"/> + </optional> + </define> + <define name="osxen"> <choice> <group> @@ -1419,9 +1429,7 @@ <attribute name="enabled"> <ref name="virYesNo"/> </attribute> - <optional> - <attribute name="fdgroup"/> - </optional> + <ref name='fdgroup'/> </element> </define> @@ -2006,9 +2014,7 @@ <ref name="vmwarePath"/> </choice> </attribute> - <optional> - <attribute name="fdgroup"/> - </optional> + <ref name="fdgroup"/> </optional> <ref name="diskSourceCommon"/> <optional> -- 2.56.0