]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Switch cmdDomIfAddr() to vshTable
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 6 Feb 2026 14:29:38 +0000 (15:29 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Feb 2026 09:52:59 +0000 (10:52 +0100)
commitafe6e5d260bae45e301b5d81163f8338694db2fb
tree3d9be70f4a4615272b314dadbc60ffb9e92a7cee
parent9373d8da6aca6a23c0cf17cddc07aac940d28994
virsh: Switch cmdDomIfAddr() to vshTable

The aim of cmdDomIfAddr() is to obtain IP addresses for given
domain and then print (ifName, MAC, type, IP Address) tuple.
Preferably in an aligned table. This is hard to do with printf
style of spacing ("%-NNs") since the interface name (ifName) can
vary a lot in length. Fortunately, we have vshTable which is
designed to handle this case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-domain-monitor.c