After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766426 - [review] lr/nmcli-overview-bgo766426: provide a quick overview of devices & their status and configuration
[review] lr/nmcli-overview-bgo766426: provide a quick overview of devices & t...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nmcli
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-review
 
 
Reported: 2016-05-14 10:29 UTC by Lubomir Rintel
Modified: 2016-07-19 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lubomir Rintel 2016-05-14 10:29:15 UTC
This was often reqeuested in the user survery.

The "nmcli" without argument should probably output something that could act like a better "ifconfig" (w/o arguments).
Comment 1 Lubomir Rintel 2016-07-01 19:51:47 UTC
Ready for review.

53dae70 cli/connections: split out ac_state_to_color()
bcb4049 cli/devices: export device_state_to_color()
c4c9755 cli: output a short summary of devices when called without arguments

https://cgit.freedesktop.org/NetworkManager/NetworkManager/log/?h=lr/nmcli-overview-bgo766426
Comment 2 Thomas Haller 2016-07-04 14:17:28 UTC
I have lots of routes, thus outputting the routes is too verbose for my usecase. Maybe omit that?

Otherwise, lgtm (great improvement!).
Comment 3 Beniamino Galvani 2016-07-05 13:46:00 UTC
Branch LGTM. Only minor consideration on the output:

 bond0: unmanaged
	bond 3.7.1, B2:E4:F1:49:D4:0C, unmanaged, sw, fw 2, mtu 1500

Can we remove the second 'unmanaged'?

Also, I find that the driver-version and the firmware-version don't
add useful information for users. Personally I would drop them; but
keep the routes :)

I would also surround the description with double quotes or something
like that to make explicit that it's a free form field, but I guess
it's a matter of taste, feel free to ignore it.

 enp0s25: connected to enp0s25-static
	"Intel Ethernet Connection I217-LM"
        ethernet (e1000e), 54:EE:75:45:5A:53, hw, fw 0.13-3, mtu 1500
Comment 4 Lubomir Rintel 2016-07-19 12:32:27 UTC
(In reply to Thomas Haller from comment #2)
> I have lots of routes, thus outputting the routes is too verbose for my
> usecase. Maybe omit that?

They're on the other hand useful and it's not too typical to have too many of those. Beniamino seems to agree, so I'm keeping them.

> Otherwise, lgtm (great improvement!).

(In reply to Beniamino Galvani from comment #3)
> Branch LGTM. Only minor consideration on the output:
> 
>  bond0: unmanaged
> 	bond 3.7.1, B2:E4:F1:49:D4:0C, unmanaged, sw, fw 2, mtu 1500
> 
> Can we remove the second 'unmanaged'?

Done.

> Also, I find that the driver-version and the firmware-version don't
> add useful information for users. Personally I would drop them; but
> keep the routes :)

Agreed; removed the versions.

> I would also surround the description with double quotes or something
> like that to make explicit that it's a free form field, but I guess
> it's a matter of taste, feel free to ignore it.
> 
>  enp0s25: connected to enp0s25-static
> 	"Intel Ethernet Connection I217-LM"
>         ethernet (e1000e), 54:EE:75:45:5A:53, hw, fw 0.13-3, mtu 1500

Good idea. Done.

Merged.