summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Giudici <fgiudici@redhat.com>2017-03-24 12:38:01 +0100
committerFrancesco Giudici <fgiudici@redhat.com>2017-03-28 10:55:00 +0200
commita62b72272fe3013b1a47fbd3b1ec1c31fd9969c9 (patch)
tree0c45e91b2dd932ec5f6b820ea668434623cab0bc
parent7d96f1f17d5aac5035c6d10bcf9691588e873fa9 (diff)
downloadNetworkManager-a62b72272fe3013b1a47fbd3b1ec1c31fd9969c9.tar.gz
nmcli: fix missing CONNECTIONS section name from nmcli -f all -m tab dev show <dev>
When a full section is specified as the field parameter in terse tabular mode, the section name should be printed followed by all the field values belonging to that section separated by ':'. The NAME of section CONNECTIONS was missing. sample command: $ nmcli -m tab -t -f CONNECTIONS device show ens3 previous output was: /org/freedesktop/NetworkManager/Settings/{1}:5059XXX-XXXX.. | ens3-dhcp now: CONNECTIONS:/org/freedesktop/NetworkManager/Settings/{1}:5059XXX-XXXX.. | ens3-dhcp
-rw-r--r--clients/cli/devices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index c831e35b88..b1677ef49d 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -92,8 +92,8 @@ NmcOutputField nmc_fields_dev_show_connections[] = {
{"AVAILABLE-CONNECTIONS", N_("AVAILABLE-CONNECTIONS")}, /* 2 */
{NULL, NULL}
};
-#define NMC_FIELDS_DEV_SHOW_CONNECTIONS_ALL "AVAILABLE-CONNECTION-PATHS,AVAILABLE-CONNECTIONS"
-#define NMC_FIELDS_DEV_SHOW_CONNECTIONS_COMMON "AVAILABLE-CONNECTION-PATHS,AVAILABLE-CONNECTIONS"
+#define NMC_FIELDS_DEV_SHOW_CONNECTIONS_ALL "NAME,AVAILABLE-CONNECTION-PATHS,AVAILABLE-CONNECTIONS"
+#define NMC_FIELDS_DEV_SHOW_CONNECTIONS_COMMON "NAME,AVAILABLE-CONNECTION-PATHS,AVAILABLE-CONNECTIONS"
/* Available fields for 'device show' - CAPABILITIES part */
NmcOutputField nmc_fields_dev_show_cap[] = {