virsh: Add --print-xml option for 'detach-interface'

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa
2022-11-30 10:49:26 +01:00
parent 83a8f249c2
commit 601a127573
2 changed files with 22 additions and 4 deletions

View File

@@ -5090,7 +5090,7 @@ detach-interface
::
detach-interface domain type [--mac mac]
[[[--live] [--config] | [--current]] | [--persistent]]
[[[--live] [--config] | [--current]] | [--persistent]] [--print-xml]
Detach a network interface from a domain.
*type* can be either *network* to indicate a physical network device or
@@ -5112,6 +5112,9 @@ an offline domain, and like *--live* *--config* for a running domain.
Note that older versions of virsh used *--config* as an alias for
*--persistent*.
If *--print-xml* is specified, then the XML used to detach the interface
is printed instead.
Please see documentation for ``detach-device`` for known quirks.