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 677142 - network: make sure multiple nics are handled ok
network: make sure multiple nics are handled ok
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 681532 (view as bug list)
Depends on:
Blocks: 677152 683136
 
 
Reported: 2012-05-31 01:29 UTC by Matthias Clasen
Modified: 2012-11-16 18:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of current behaviour (166.33 KB, image/png)
2012-05-31 18:41 UTC, Giovanni Campagna
  Details
NetworkMenu: rework multiple NIC support (9.39 KB, patch)
2012-08-29 20:27 UTC, Giovanni Campagna
accepted-commit_after_freeze Details | Review
NetworkMenu: rework multiple NIC support (9.31 KB, patch)
2012-08-31 20:12 UTC, Giovanni Campagna
none Details | Review
network: use a new libnm-gtk function to disambiguate device names (8.55 KB, patch)
2012-10-03 20:18 UTC, Dan Winship
none Details | Review
NetworkMenu: rework multiple NIC support (12.56 KB, patch)
2012-10-11 19:22 UTC, Dan Winship
none Details | Review
NetworkMenu: rework multiple NIC support (13.10 KB, patch)
2012-10-16 15:39 UTC, Giovanni Campagna
reviewed Details | Review
NetworkMenu: rework multiple NIC support (12.49 KB, patch)
2012-11-15 19:36 UTC, Dan Winship
committed Details | Review
this seems to fix the switch/connection-list ordering. (to be squashed) (1.00 KB, patch)
2012-11-16 16:20 UTC, Dan Winship
committed Details | Review

Description Matthias Clasen 2012-05-31 01:29:07 UTC
The nics should be identified in a reasonable way in the menu, and have independent connection status.

(Note: this bug is part of a series of bugs I'm filing for handling 'exotic' network constellations)
Comment 1 Giovanni Campagna 2012-05-31 18:17:09 UTC
Uhm... aren't they currently?

The menu shows a subsection for each card, with its own switch/status label and connection list.

(This is the only kind of 'exotic' hardware that we handle right now. I'd like to see some designer inputs on the other cases before implementing them)
Comment 2 Giovanni Campagna 2012-05-31 18:41:09 UTC
Created attachment 215359 [details]
Screenshot of current behaviour
Comment 3 Matthias Clasen 2012-05-31 18:50:20 UTC
(In reply to comment #1)
> Uhm... aren't they currently?

I don't know - don't misinterpret these bugs, they are really more test plan tasks for the NetworkManager team than bugs. If things are already working fine, then that is great, and we can just close it after testing it.
Comment 4 Dan Winship 2012-08-27 14:40:38 UTC
Yeah, I think this is FIXED/INVALID; the network menu has had support for multiple nics since the beginning, and it was part of the design
Comment 5 Dan Winship 2012-08-27 14:50:35 UTC
alternatively, as suggested in bug 677143, maybe we should be showing the interface name ("eth0", "eth1") rather than the hardware device name, since many machines with multiple ethernet cards will have multiple *identical* ethernet cards. (The "eth0"s and "eth1"s in Giovanni's screenshot don't count; they're from the connection names, which may not necessarily have the interface name in them depending on how/where they were created. Eg, my primary wired connection is called "Wired connection 1".)
Comment 6 Giovanni Campagna 2012-08-29 16:31:06 UTC
I'm reopening this bug to implement the mockup at https://dl.dropbox.com/u/5031519/gnome-shell/network-menu-lots.png
Comment 7 Giovanni Campagna 2012-08-29 20:27:35 UTC
Created attachment 222840 [details] [review]
NetworkMenu: rework multiple NIC support

Remove section titles for ethernet and mobile broadband, and replace
them with device status items that recognize if multiple devices are
installed in the same section, and if so automatically disambiguate.
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-08-29 20:38:06 UTC
Review of attachment 222840 [details] [review]:

Looks like a good cleanup. Are we in string freeze yet? Commit if so.
Comment 9 Giovanni Campagna 2012-08-29 20:45:33 UTC
(In reply to comment #8)
> Review of attachment 222840 [details] [review]:
> 
> Looks like a good cleanup. Are we in string freeze yet? Commit if so.

Wait, so fast?
This was meant for review by designers first.

(Also, it affects UI freeze too, so it needs approval)
Comment 10 Dan Winship 2012-08-30 12:14:33 UTC
*** Bug 681532 has been marked as a duplicate of this bug. ***
Comment 11 Dan Winship 2012-08-30 13:05:24 UTC
discussion of the design changes is also happening on bug 677143 (the control panel version of this bug), so we shouldn't commit either of them until we're sure this is what we're sticking with.
Comment 12 Giovanni Campagna 2012-08-31 20:12:51 UTC
Created attachment 223102 [details] [review]
NetworkMenu: rework multiple NIC support

Remove section titles for ethernet and mobile broadband, and replace
them with device status items that recognize if multiple devices are
installed in the same section, and if so automatically disambiguate.

This is above bug 682929 and bug 658230.
Comment 13 Dan Winship 2012-10-03 20:18:48 UTC
Created attachment 225715 [details] [review]
network: use a new libnm-gtk function to disambiguate device names

The control panel will also use this, so this keeps the names in sync
between them.



This requires libnm-gtk from git master network-manager-applet. And it
doesn't incorporate any of the other UI changes in Giovanni's patch or
the deps of this bug, so it's not complete as-is.
Comment 14 Matthias Clasen 2012-10-10 11:39:37 UTC
The control-center has been branched now, so we should look at landing this.
Comment 15 Bastien Nocera 2012-10-10 16:59:56 UTC
(In reply to comment #14)
> The control-center has been branched now, so we should look at landing this.

This is about gnome-shell though.
Comment 16 Dan Winship 2012-10-11 19:22:29 UTC
Created attachment 226290 [details] [review]
NetworkMenu: rework multiple NIC support

Remove section titles for ethernet and mobile broadband, and replace
them with device status items that recognize if multiple devices are
installed in the same section, and if so automatically disambiguate.

=====

This version merges my patch into Giovanni's (and kills some dead code
leftover in his). One problem; there are now two Wi-Fi toggle
switches, with slightly different behavior. (I get that behavior with
just the original patch too.) I figure Giovanni can probably debug
this better than I can...
Comment 17 Giovanni Campagna 2012-10-16 15:39:54 UTC
Created attachment 226563 [details] [review]
NetworkMenu: rework multiple NIC support

Remove section titles for ethernet and mobile broadband, and replace
them with device status items that recognize if multiple devices are
installed in the same section, and if so automatically disambiguate.
Comment 18 Dan Winship 2012-10-16 16:59:27 UTC
Comment on attachment 226563 [details] [review]
NetworkMenu: rework multiple NIC support

>         if (!this._hardwareEnabled) {
>-            this.setStatus(_("hardware disabled"));
>+             this.setStatus(_("hardware disabled"));
>         } else if (device && this._softwareEnabled) {
>             let text = device.getStatusLabel();
>             this.setStatus(text);
>         } else
>-            this.setStatus(null);
>+             this.setStatus(null);

accidental?

My F18 machine ate itself, so I can't easily test this right now, but it looks right.
Comment 19 Matthias Clasen 2012-10-31 14:42:53 UTC
should we get this in then, if it looks right ?
Comment 20 Dan Winship 2012-11-15 19:36:25 UTC
Created attachment 229078 [details] [review]
NetworkMenu: rework multiple NIC support

====

rebased, and versioned the dependency on libnm-gtk.

I discovered a new problem though; if you have more than one wired
connection defined in nm-connection-editor, then the different
connections show up *above* the "Wired" switch now rather than below
it.
Comment 21 Dan Winship 2012-11-16 16:20:43 UTC
Created attachment 229161 [details] [review]
this seems to fix the switch/connection-list ordering. (to be squashed)
Comment 22 Giovanni Campagna 2012-11-16 18:48:37 UTC
Review of attachment 229078 [details] [review]:

Squash the other one, and let's get this in. There will be time to fix it before 3.8.0 if it breaks again, and the best way to find out is to have it tested.
Comment 23 Dan Winship 2012-11-16 18:54:26 UTC
Attachment 229078 [details] pushed as 490206b - NetworkMenu: rework multiple NIC support