Commit a1b25a47 authored by Thomas Haller's avatar Thomas Haller

cli: rework printing of `nmcli connection` for multiple active connections

The output of `nmcli connection show` contains also information about
whether the profile is currently active, for example the device and
the current (activation) state.

Even when a profile can be activated only once (without supporting
mutiple activations at the same time), there are moments when a
connection is activating and still deactivating on another device.
NetworkManager ensures in the case with single activations that
a profile cannot be in state "activated" multiple times. But that
doesn't mean, that one profile cannot have multiple active connection
which reference it. That was already handled wrongly before, because
`nmcli connection show` would only search the first matching
active-connection. That is, it would arbitrarily pick an active
connection in case there were multiple and only show activation
state about one.
Furthermore, we will soon also add the possibility, that a profile can be
active multiple times (at the same time). Especially then, we need to
extend the output format to show all the devices on which the profile is
currently active.

Rework printing the connection list to use nmc_print(), and fix various
issues.

- as discussed, a profile may have multiple active connections at each time.
  There are only two possibilities: if a profile is active multiple
  times, show a line for each activation, or otherwise, show the
  information about multiple activations combined in one line, e.g. by
  printing "DEVICE eth0,eth1". This patch, does the former.
  We will now print a line for each active connection, to show
  all the devices and activation states in multiple lines.
  Yes, this may result in the same profile being printed multiple times.
  That is a change in behavior, and inconvenient if you do something
  like

     for UUID in $(nmcli connection show | awk '{print$2}'); do ...

  However, above is anyway wrong because it assumes that there are no
  spaces in the connection name. The proper way to do this is like

     for UUID in $(nmcli -g UUID connection show); do ...

  In the latter case, whenever a user selects a subset of fields
  (--fields, --get) which don't print information about active connections,
  these multiple lines are combined. So, above still works as expected,
  never returning duplicate UUIDs.

- if a user has no permissions to see a connection, we previously
  would print "<invisible> $NAME". No longer do this but just print
  the ID was it is reported by the active-connection. If the goal
  of this was to prevent users from accidentally access the non-existing
  connection by $NAME, then this was a bad solution, because a script
  would instead try to access "<invisible> $NAME". This is now solved
  better by hiding the active connection if the user selects "-g NAME".

- the --order option now sorts according to how the fields are shown.
  For example, with --terse mode, it will evaluate type "802-11-wireless"
  but with pretty mode it will consider "wifi". This may change the
  ordering in which connections are shown. Also, for sorting the name,
  we use g_utf8_collate() because it's unicode.
parent 3690f8bc
This diff is collapsed.
......@@ -35,7 +35,7 @@ nmc_read_connection_properties (NmCli *nmc,
NMMetaColor nmc_active_connection_state_to_color (NMActiveConnectionState state);
extern const NmcMetaGenericInfo *const nmc_fields_con_show[];
extern const NmcMetaGenericInfo *const metagen_con_show[];
extern const NmcMetaGenericInfo *const nmc_fields_con_active_details_general[];
extern const NmcMetaGenericInfo *const nmc_fields_con_active_details_vpn[];
extern const NmcMetaGenericInfo *const nmc_fields_con_active_details_groups[];
......
......@@ -188,7 +188,7 @@ complete_fields (const char *option, const char *prefix)
complete_field (h, metagen_ip4_config);
complete_field (h, nmc_fields_dhcp_config);
complete_field (h, nmc_fields_ip6_config);
complete_field (h, nmc_fields_con_show);
complete_field (h, metagen_con_show);
complete_field (h, nmc_fields_con_active_details_general);
complete_field (h, nmc_fields_con_active_details_vpn);
complete_field (h, nmc_fields_con_active_details_groups);
......
......@@ -72,6 +72,14 @@ typedef enum {
NMC_PRINT_PRETTY = 2
} NMCPrintOutput;
static inline NMMetaAccessorGetType
nmc_print_output_to_accessor_get_type (NMCPrintOutput print_output)
{
return (print_output != NMC_PRINT_TERSE)
? NM_META_ACCESSOR_GET_TYPE_PRETTY
: NM_META_ACCESSOR_GET_TYPE_PARSABLE;
}
/* === Output fields === */
typedef enum {
......
......@@ -1004,9 +1004,7 @@ _print_fill (const NmcConfig *nmc_config,
g_array_set_clear_func (cells, _print_data_cell_clear);
g_array_set_size (cells, targets_len * header_row->len);
text_get_type = pretty
? NM_META_ACCESSOR_GET_TYPE_PRETTY
: NM_META_ACCESSOR_GET_TYPE_PARSABLE;
text_get_type = nmc_print_output_to_accessor_get_type (nmc_config->print_output);
text_get_flags = NM_META_ACCESSOR_GET_FLAGS_ACCEPT_STRV;
if (nmc_config->show_secrets)
text_get_flags |= NM_META_ACCESSOR_GET_FLAGS_SHOW_SECRETS;
......@@ -1165,7 +1163,7 @@ _print_do (const NmcConfig *nmc_config,
guint i_row, i_col;
nm_auto_free_gstring GString *str = NULL;
g_assert (col_len && row_len);
g_assert (col_len);
/* Main header */
if (pretty && header_name_no_l10n) {
......
......@@ -121,6 +121,22 @@ typedef enum {
NMC_GENERIC_INFO_TYPE_IP6_CONFIG_DOMAIN,
_NMC_GENERIC_INFO_TYPE_IP6_CONFIG_NUM,
NMC_GENERIC_INFO_TYPE_CON_SHOW_NAME = 0,
NMC_GENERIC_INFO_TYPE_CON_SHOW_UUID,
NMC_GENERIC_INFO_TYPE_CON_SHOW_TYPE,
NMC_GENERIC_INFO_TYPE_CON_SHOW_TIMESTAMP,
NMC_GENERIC_INFO_TYPE_CON_SHOW_TIMESTAMP_REAL,
NMC_GENERIC_INFO_TYPE_CON_SHOW_AUTOCONNECT,
NMC_GENERIC_INFO_TYPE_CON_SHOW_AUTOCONNECT_PRIORITY,
NMC_GENERIC_INFO_TYPE_CON_SHOW_READONLY,
NMC_GENERIC_INFO_TYPE_CON_SHOW_DBUS_PATH,
NMC_GENERIC_INFO_TYPE_CON_SHOW_ACTIVE,
NMC_GENERIC_INFO_TYPE_CON_SHOW_DEVICE,
NMC_GENERIC_INFO_TYPE_CON_SHOW_STATE,
NMC_GENERIC_INFO_TYPE_CON_SHOW_ACTIVE_PATH,
NMC_GENERIC_INFO_TYPE_CON_SHOW_SLAVE,
_NMC_GENERIC_INFO_TYPE_CON_SHOW_NUM,
} NmcGenericInfoType;
#define NMC_HANDLE_COLOR(color) \
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:731:test_003()/33
cmd: $NMCLI con
lang: C
returncode: 0
stdout: 264 bytes
stdout: 330 bytes
>>>
NAME UUID TYPE DEVICE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth0
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth1
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet --
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:731:test_003()/34
cmd: $NMCLI con
lang: pl_PL.UTF-8
returncode: 0
stdout: 264 bytes
stdout: 330 bytes
>>>
NAME UUID TYPE DEVICE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth0
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth1
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet --
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:734:test_003()/35
cmd: $NMCLI -f ALL con
lang: C
returncode: 0
stdout: 1084 bytes
stdout: 1355 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth0 activated /org/freedesktop/NetworkManager/ActiveConnection/1 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:734:test_003()/36
cmd: $NMCLI -f ALL con
lang: pl_PL.UTF-8
returncode: 0
stdout: 1088 bytes
stdout: 1360 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth0 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/1 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth1 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/2 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:737:test_003()/37
cmd: $NMCLI -f ALL con s -a
lang: C
returncode: 0
stdout: 542 bytes
stdout: 813 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth0 activated /org/freedesktop/NetworkManager/ActiveConnection/1 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
<<<
stderr: 0 bytes
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:737:test_003()/38
cmd: $NMCLI -f ALL con s -a
lang: pl_PL.UTF-8
returncode: 0
stdout: 544 bytes
stdout: 816 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth0 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/1 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth1 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/2 --
<<<
stderr: 0 bytes
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:740:test_003()/39
cmd: $NMCLI -f ACTIVE-PATH,DEVICE,UUID con s -act
lang: C
returncode: 0
stdout: 196 bytes
stdout: 294 bytes
>>>
ACTIVE-PATH DEVICE UUID
/org/freedesktop/NetworkManager/ActiveConnection/1 eth0 UUID-ethernet-REPLACED-REPLACED-REPL
/org/freedesktop/NetworkManager/ActiveConnection/2 eth1 UUID-ethernet-REPLACED-REPLACED-REPL
<<<
stderr: 0 bytes
......
......@@ -2,10 +2,11 @@ location: clients/tests/test-client.py:740:test_003()/40
cmd: $NMCLI -f ACTIVE-PATH,DEVICE,UUID con s -act
lang: pl_PL.UTF-8
returncode: 0
stdout: 196 bytes
stdout: 294 bytes
>>>
ACTIVE-PATH DEVICE UUID
/org/freedesktop/NetworkManager/ActiveConnection/1 eth0 UUID-ethernet-REPLACED-REPLACED-REPL
/org/freedesktop/NetworkManager/ActiveConnection/2 eth1 UUID-ethernet-REPLACED-REPLACED-REPL
<<<
stderr: 0 bytes
......
......@@ -2,9 +2,10 @@ location: clients/tests/test-client.py:772:test_003()/53
cmd: $NMCLI -f ALL con
lang: C
returncode: 0
stdout: 1096 bytes
stdout: 1370 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
......
......@@ -2,9 +2,10 @@ location: clients/tests/test-client.py:772:test_003()/54
cmd: $NMCLI -f ALL con
lang: pl_PL.UTF-8
returncode: 0
stdout: 1104 bytes
stdout: 1380 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth1 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/2 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth0 dezaktywowanie /org/freedesktop/NetworkManager/ActiveConnection/1 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
......
......@@ -2,13 +2,13 @@ location: clients/tests/test-client.py:772:test_003()/73
cmd: $NMCLI -f ALL con
lang: C
returncode: 0
stdout: 1430 bytes
stdout: 1370 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- yes eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
<<<
stderr: 0 bytes
......
......@@ -2,13 +2,13 @@ location: clients/tests/test-client.py:772:test_003()/74
cmd: $NMCLI -f ALL con
lang: pl_PL.UTF-8
returncode: 0
stdout: 1430 bytes
stdout: 1380 bytes
>>>
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- tak eth0 deactivating /org/freedesktop/NetworkManager/ActiveConnection/1 --
<invisible> ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- -- tak eth1 activated /org/freedesktop/NetworkManager/ActiveConnection/2 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth1 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/2 --
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet -- -- -- -- -- /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth0 dezaktywowanie /org/freedesktop/NetworkManager/ActiveConnection/1 --
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
<<<
stderr: 0 bytes
......
......@@ -2,11 +2,9 @@ location: clients/tests/test-client.py:775:test_003()/75
cmd: $NMCLI -f UUID,TYPE con
lang: C
returncode: 0
stdout: 240 bytes
stdout: 144 bytes
>>>
UUID TYPE
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -2,11 +2,9 @@ location: clients/tests/test-client.py:775:test_003()/76
cmd: $NMCLI -f UUID,TYPE con
lang: pl_PL.UTF-8
returncode: 0
stdout: 240 bytes
stdout: 144 bytes
>>>
UUID TYPE
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -2,12 +2,8 @@ location: clients/tests/test-client.py:778:test_003()/77
cmd: $NMCLI -f UUID,TYPE --mode multiline con
lang: C
returncode: 0
stdout: 504 bytes
stdout: 252 bytes
>>>
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE: ethernet
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
......
......@@ -2,12 +2,8 @@ location: clients/tests/test-client.py:778:test_003()/78
cmd: $NMCLI -f UUID,TYPE --mode multiline con
lang: pl_PL.UTF-8
returncode: 0
stdout: 504 bytes
stdout: 252 bytes
>>>
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE: ethernet
UUID: UUID-con-xx1-REPLACED-REPLACED-REPLA
......
......@@ -2,12 +2,8 @@ location: clients/tests/test-client.py:781:test_003()/79
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
lang: C
returncode: 0
stdout: 248 bytes
stdout: 124 bytes
>>>
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
TYPE:802-3-ethernet
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
TYPE:802-3-ethernet
UUID:5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE:802-3-ethernet
UUID:UUID-con-xx1-REPLACED-REPLACED-REPLA
......
......@@ -2,12 +2,8 @@ location: clients/tests/test-client.py:781:test_003()/80
cmd: $NMCLI -f UUID,TYPE --mode multiline --terse con
lang: pl_PL.UTF-8
returncode: 0
stdout: 248 bytes
stdout: 124 bytes
>>>
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
TYPE:802-3-ethernet
UUID:UUID-ethernet-REPLACED-REPLACED-REPL
TYPE:802-3-ethernet
UUID:5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE:802-3-ethernet
UUID:UUID-con-xx1-REPLACED-REPLACED-REPLA
......
......@@ -2,17 +2,11 @@ location: clients/tests/test-client.py:784:test_003()/81
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
lang: C
returncode: 0
stdout: 1041 bytes
stdout: 629 bytes
>>>
===============================================================================
NetworkManager connection profiles
===============================================================================
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
-------------------------------------------------------------------------------
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
-------------------------------------------------------------------------------
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE: ethernet
-------------------------------------------------------------------------------
......
......@@ -2,17 +2,11 @@ location: clients/tests/test-client.py:784:test_003()/82
cmd: $NMCLI -f UUID,TYPE --mode multiline --pretty con
lang: pl_PL.UTF-8
returncode: 0
stdout: 1047 bytes
stdout: 635 bytes
>>>
===============================================================================
Profile połączeń usługi NetworkManager
===============================================================================
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
-------------------------------------------------------------------------------
UUID: UUID-ethernet-REPLACED-REPLACED-REPL
TYPE: ethernet
-------------------------------------------------------------------------------
UUID: 5fcfd6d7-1e63-3332-8826-a7eda103792d
TYPE: ethernet
-------------------------------------------------------------------------------
......
......@@ -2,11 +2,9 @@ location: clients/tests/test-client.py:787:test_003()/83
cmd: $NMCLI -f UUID,TYPE --mode tabular con
lang: C
returncode: 0
stdout: 240 bytes
stdout: 144 bytes
>>>
UUID TYPE
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -2,11 +2,9 @@ location: clients/tests/test-client.py:787:test_003()/84
cmd: $NMCLI -f UUID,TYPE --mode tabular con
lang: pl_PL.UTF-8
returncode: 0
stdout: 240 bytes
stdout: 144 bytes
>>>
UUID TYPE
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -2,10 +2,8 @@ location: clients/tests/test-client.py:790:test_003()/85
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
lang: C
returncode: 0
stdout: 208 bytes
stdout: 104 bytes
>>>
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d:802-3-ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA:802-3-ethernet
......
......@@ -2,10 +2,8 @@ location: clients/tests/test-client.py:790:test_003()/86
cmd: $NMCLI -f UUID,TYPE --mode tabular --terse con
lang: pl_PL.UTF-8
returncode: 0
stdout: 208 bytes
stdout: 104 bytes
>>>
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
UUID-ethernet-REPLACED-REPLACED-REPL:802-3-ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d:802-3-ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA:802-3-ethernet
......
......@@ -2,15 +2,13 @@ location: clients/tests/test-client.py:793:test_003()/87
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
lang: C
returncode: 0
stdout: 442 bytes
stdout: 346 bytes
>>>
======================================
NetworkManager connection profiles
======================================
UUID TYPE
--------------------------------------------------------------------------------------
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -2,15 +2,13 @@ location: clients/tests/test-client.py:793:test_003()/88
cmd: $NMCLI -f UUID,TYPE --mode tabular --pretty con
lang: pl_PL.UTF-8
returncode: 0
stdout: 462 bytes
stdout: 366 bytes
>>>
==========================================
Profile połączeń usługi NetworkManager
==========================================
UUID TYPE
------------------------------------------------------------------------------------------
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
UUID-ethernet-REPLACED-REPLACED-REPL ethernet
5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet
UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet
......
......@@ -6,9 +6,9 @@ stdout: 0 bytes
>>>
<<<
stderr: 102 bytes
stderr: 103 bytes
>>>
**
nmcli:ERROR:clients/cli/connections.c:893:fill_output_active_connection: assertion failed: (s_con)
nmcli:ERROR:clients/cli/connections.c:1062:fill_output_active_connection: assertion failed: (s_con)
<<<
......@@ -6,9 +6,9 @@ stdout: 0 bytes
>>>
<<<
stderr: 102 bytes
stderr: 103 bytes
>>>
**
nmcli:ERROR:clients/cli/connections.c:893:fill_output_active_connection: assertion failed: (s_con)
nmcli:ERROR:clients/cli/connections.c:1062:fill_output_active_connection: assertion failed: (s_con)
<<<
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment