summaryrefslogtreecommitdiff
path: root/docs/manpages
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2022-10-18 13:19:05 +0200
committerPeter Krempa <pkrempa@redhat.com>2022-11-01 13:07:20 +0100
commitd8791c3c7caa6e3cadaf98a5a2c94b232ac30fed (patch)
treee61ef3ec777fcf2e7286fb46f76d99d65318d912 /docs/manpages
parent0268270b0f097cfca4219624daa31270a7cedf0f (diff)
downloadlibvirt-d8791c3c7caa6e3cadaf98a5a2c94b232ac30fed.tar.gz
nodedev: Add VIR_NODE_DEVICE_(CREATE|DEFINE)_XML_VALIDATE flags
The node device APIs which get XML from the user don't yet support XML validation flags. Introduce virNodeDeviceCreateXMLFlags and virNodeDeviceDefineXMLFlags with the appropriate flags and add virsh support for the new flags. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'docs/manpages')
-rw-r--r--docs/manpages/virsh.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst
index 6ea87d2e76..b33e6a3a86 100644
--- a/docs/manpages/virsh.rst
+++ b/docs/manpages/virsh.rst
@@ -5235,7 +5235,7 @@ nodedev-create
::
- nodedev-create FILE
+ nodedev-create FILE [--validate]
Create a device on the host node that can then be assigned to virtual
machines. Normally, libvirt is able to automatically determine which
@@ -5243,6 +5243,9 @@ host nodes are available for use, but this allows registration of
host hardware that libvirt did not automatically detect. *file*
contains xml for a top-level <device> description of a node device.
+If *--validate* is specified, validates the format of the XML document against
+an internal RNG schema.
+
nodedev-destroy
---------------
@@ -5266,11 +5269,14 @@ nodedev-define
::
- nodedev-define FILE
+ nodedev-define FILE [--validate]
Define an inactive persistent device or modify an existing persistent one from
the XML *FILE*.
+If *--validate* is specified, validates the format of the XML document against
+an internal RNG schema.
+
nodedev-undefine
----------------