On Tue, Sep 14, 2021 at 15:56:43 +0800, zhanglei wrote:
Signed-off-by: zhanglei <zhanglei(a)smartx.com>
---
docs/manpages/virsh.rst | 12 ++++++++++--
tools/virsh-domain.c | 6 ++++++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst
index 9561b3f59d..dd186ab14d 100644
--- a/docs/manpages/virsh.rst
+++ b/docs/manpages/virsh.rst
[...]
@@ -2779,6 +2779,14 @@ returned:
* ``disk.<num>.alias`` - the device alias of the disk (e.g. sda)
* ``disk.<num>.guest_alias`` - optional alias assigned to the disk
+*--interface* returns:
+* ``if.count`` - the number of interfaces defined on this domain
+* ``if.<num>.name`` - name in the guest (e.g. ``eth0``) for interface <num>
+* ``if.<num>.hwaddr`` - hardware address in the guest for interface <num>
+* ``if.<num>.addr.count`` - the number of IP addresses of interface <num>
+* ``if.<num>.addr.<num>.type`` - the type of IP address <num> (e.g.
ipv4)
This is confusing. You have two '<num>' substitutions in the filed name
format example and refer to one of them in the descriptition.