[libvirt] [PATCH v2] virsh: domdisplay: if listen is 0.0.0.0 or [::] print address from URI

Peter Krempa pkrempa at redhat.com
Wed Jun 8 11:42:10 UTC 2016


On Wed, Jun 08, 2016 at 13:14:00 +0200, Pavel Hrdina wrote:
> Currently if a guest has listen address 0.0.0.0 or [::] and you run
> "virsh domdisplay $domain" you always get "spice://localhost:$port".
> 
> We want to print better address if someone is connected from a different
> computer using "virsh -c qemu+ssh://some.host/system".  This patch fixes the
> behavior of virsh to print in this case "spice://some.host:$port".
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1332446
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
> 
> changes in v2:
>     - use virConnectPtr instead connname to properly handle aliases and
>     default uri

ACK




More information about the libvir-list mailing list