This patch changes whitespace and the length of the separation line from this format:
$ virsh net-list --all Name State Autostart Persistent -------------------------------------------------- default inactive yes yes to $ virsh net-list --all Name State Autostart Persistent ---------------------------------------------------------- default inactive yes yes to match the output of virsh list. --- tools/virsh-network.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/virsh-network.c b/tools/virsh-network.c index c9cd15a..fc73a28 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -614,9 +614,10 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) if (!(list = vshNetworkListCollect(ctl, flags))) return false; - vshPrintExtra(ctl, "%-20s %-10s %-13s %s\n", _("Name"), _("State"), + vshPrintExtra(ctl, " %-20s %-10s %-13s %s\n", _("Name"), _("State"), _("Autostart"), _("Persistent")); - vshPrintExtra(ctl, "--------------------------------------------------\n"); + vshPrintExtra(ctl, + "----------------------------------------------------------\n"); for (i = 0; i < list->nnets; i++) { virNetworkPtr network = list->nets[i]; @@ -628,7 +629,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) else autostartStr = is_autostart ? _("yes") : _("no"); - vshPrint(ctl, "%-20s %-10s %-13s %s\n", + vshPrint(ctl, " %-20s %-10s %-13s %s\n", virNetworkGetName(network), virNetworkIsActive(network) ? _("active") : _("inactive"), autostartStr, -- 1.8.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list