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 677145 - network: make sure bridged devices are handled
network: make sure bridged devices are handled
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks: 677152
 
 
Reported: 2012-05-31 01:35 UTC by Matthias Clasen
Modified: 2013-01-30 18:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: add "virtual device" support, for bonds, bridges, and vlans (42.49 KB, patch)
2013-01-29 14:07 UTC, Dan Winship
reviewed Details | Review
network: add net_device_get_valid_connections() and use it everywhere (14.51 KB, patch)
2013-01-29 14:07 UTC, Dan Winship
reviewed Details | Review

Description Matthias Clasen 2012-05-31 01:35:25 UTC
NetworkManager supports bridging nowadays; the network panel 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:43 UTC
See http://fedoraproject.org/wiki/Features/NMEnterpriseNetworking
Comment 2 Dan Winship 2013-01-29 14:07:05 UTC
Created attachment 234728 [details] [review]
network: add "virtual device" support, for bonds, bridges, and vlans

Bond, bridge, and VLAN devices may not actually exist until their
connections are brought up. So for those types, create device items
(of type NetVirtualDevice or a subclass) as soon as we see the
NMConnection, and then watch for the NMDevice being added later.
Comment 3 Dan Winship 2013-01-29 14:07:09 UTC
Created attachment 234729 [details] [review]
network: add net_device_get_valid_connections() and use it everywhere

In addition to simplifying a bunch of places that were calling
nm_remote_settings_list_connections() +
nm_device_filter_connections(), this also ensures we filter out slave
connections everywhere (except when they are the active connection).
Comment 4 Dan Winship 2013-01-29 14:08:39 UTC
The first patch is also a fix to the existing bond and vlan support, which it turns out only worked right in certain circumstances. (In particular, it worked if your bond/vlan connection was autoconnect, but usually not if it wasn't.)

This conflicts with bug 691721 of course, but hopefully we'll actually get an NM release out this time...
Comment 5 Bastien Nocera 2013-01-29 16:29:09 UTC
Review of attachment 234728 [details] [review]:

Looks fine.

::: panels/network/net-virtual-device.c
@@ +46,3 @@
+enum {
+        PROP_0,
+

extraneous line feeds here.
Comment 6 Bastien Nocera 2013-01-29 16:31:19 UTC
Review of attachment 234729 [details] [review]:

++

::: panels/network/net-device-wifi.c
@@ +1837,3 @@
         }
+
+        g_slist_free (connections);

I'm guessing this should be a separate bug fix.