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 677144 - network: make sure bridged devices are handled
network: make sure bridged devices are handled
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 677146 677148 (view as bug list)
Depends on: 677150
Blocks: 677152
 
 
Reported: 2012-05-31 01:33 UTC by Matthias Clasen
Modified: 2013-01-22 14:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: add support for virtual device types (vlan, bond, bridge) (17.29 KB, patch)
2012-12-04 13:57 UTC, Dan Winship
committed Details | Review
libnm-gtk: add Bridge support to nm-ui-utils (1.01 KB, patch)
2012-12-04 13:57 UTC, Dan Winship
accepted-commit_now Details | Review
libnm-gtk: add nma_utils_get_connection_device_name() (2.51 KB, patch)
2012-12-04 13:57 UTC, Dan Winship
accepted-commit_now Details | Review

Description Matthias Clasen 2012-05-31 01:33:45 UTC
NetworkManager supports bridging nowadays; the network menu should show something reasonable when it meets such a network configuration.

(Note: this bug is part of a series of bugs I'm filing for handling 'exotic'
network constellations)
Comment 1 Matthias Clasen 2012-05-31 01:36:50 UTC
See http://fedoraproject.org/wiki/Features/NMEnterpriseNetworking
Comment 2 Dan Winship 2012-12-04 13:57:12 UTC
Created attachment 230659 [details] [review]
network: add support for virtual device types (vlan, bond, bridge)

Virtual devices may not actually exist until their corresponding
connections are brought up. So we need new code to create fake device
wrapper objects for them based on the corresponding NMConnections.

https://bugzilla.gnome.org/show_bug.cgi?id=677144
https://bugzilla.gnome.org/show_bug.cgi?id=677146
https://bugzilla.gnome.org/show_bug.cgi?id=677148
Comment 3 Dan Winship 2012-12-04 13:57:48 UTC
Created attachment 230660 [details] [review]
libnm-gtk: add Bridge support to nm-ui-utils
Comment 4 Dan Winship 2012-12-04 13:57:51 UTC
Created attachment 230661 [details] [review]
libnm-gtk: add nma_utils_get_connection_device_name()

nma_utils_disambiguate_device_names() can only work for devices that
actually exist. Add nma_utils_get_connection_device_name() to get the
user-friendly device name for a virtual device that doesn't yet exist.
Comment 5 Dan Winship 2012-12-04 14:00:41 UTC
The libnm-gtk patches are attached mostly just for reference / if you want to try it out. We also still need to deal with the fact that there haven't been NM and nm-applet releases with the new APIs yet.

The code here works, so you don't actually need to build everything and test it. I'm not sure this is totally the best way to do everything though... (The issue, as mentioned in the commit message, is that in some cases, the NMDevices for virtual connections won't exist until you actually bring the connection up.)
Comment 6 Dan Winship 2012-12-04 14:01:09 UTC
*** Bug 677146 has been marked as a duplicate of this bug. ***
Comment 7 Dan Winship 2012-12-04 14:01:27 UTC
*** Bug 677148 has been marked as a duplicate of this bug. ***
Comment 8 Giovanni Campagna 2013-01-18 23:41:42 UTC
Review of attachment 230659 [details] [review]:

Looks good to me. Ok to commit if tested.
Comment 9 Giovanni Campagna 2013-01-18 23:42:24 UTC
Review of attachment 230660 [details] [review]:

This one would be up to you to review really, but it's very straightforward.
Comment 10 Giovanni Campagna 2013-01-18 23:43:13 UTC
Review of attachment 230661 [details] [review]:

Makes sense to me.
Comment 11 Dan Winship 2013-01-21 21:04:01 UTC
pushed, along with a separate commit to disable the new functionality
under NM 0.9.6, which can be reverted along with the other
0.9.6-compat patch later.
Comment 12 Dan Winship 2013-01-21 21:07:28 UTC
Oh, and if you get errors about NMGtk.utils_get_connection_device_name, update network-manager-applet; the code works with 0.9.6, or with NMGtk as of today, but not with anything in between.