From a62b72272fe3013b1a47fbd3b1ec1c31fd9969c9 Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Fri, 24 Mar 2017 12:38:01 +0100 Subject: [PATCH] nmcli: fix missing CONNECTIONS section name from nmcli -f all -m tab dev show 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 --- clients/cli/devices.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index c831e35b8..b1677ef49 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[] = {