]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Display vhostuser socket path in domiflist
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Sep 2018 09:01:53 +0000 (11:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Sep 2018 13:01:29 +0000 (15:01 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1630164

The domiflist command is designed to show a brief information on
domain interfaces. One piece of information that is shows is
"Source" - source network, device, name, bridge. However, it's
ignoring vhostuser for which we can show the unix socket it's
associated with.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tools/virsh-domain-monitor.c

index 8962586d7670facda0b7fce430a4c3904258060c..35c2216137cda07d8713f3371665a00e7ac67850 100644 (file)
@@ -715,7 +715,8 @@ cmdDomiflist(vshControl *ctl, const vshCmd *cmd)
         source = virXPathString("string(./source/@bridge"
                                 "|./source/@dev"
                                 "|./source/@network"
-                                "|./source/@name)", ctxt);
+                                "|./source/@name"
+                                "|./source/@path)", ctxt);
 
         target = virXPathString("string(./target/@dev)", ctxt);
         model = virXPathString("string(./model/@type)", ctxt);