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 720312 - Can't create Team connection
Can't create Team connection
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
3.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-12 10:49 UTC by Vadim Rutkovsky
Modified: 2014-01-10 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] network: add Team to g-c-c connection editor (10.71 KB, patch)
2013-12-13 13:48 UTC, Jiri Klimes
committed Details | Review
[patch] network: make "(none)" translatable (2.21 KB, patch)
2013-12-17 14:52 UTC, Jiri Klimes
committed Details | Review

Description Vadim Rutkovsky 2013-12-12 10:49:15 UTC
nm-connection-editor has team feature, but g-c-c doesn't
Comment 1 Bastien Nocera 2013-12-12 11:18:58 UTC
What's a team connection?
Comment 2 Jiri Pirko 2013-12-12 13:38:58 UTC
(In reply to comment #1)
> What's a team connection?

It is very similar to bonding. In fact I think that the adding support for team connection type is very easy copy&paste exercise.

Jiri
Comment 3 Jiri Klimes 2013-12-13 13:48:05 UTC
Created attachment 264147 [details] [review]
[PATCH] network: add Team to g-c-c connection editor

The patch adds support for adding Team connection in gnome-control-center
(click "+" button)
Comment 4 Bastien Nocera 2013-12-13 14:12:51 UTC
Review of attachment 264147 [details] [review]:

The code looks like it's the exact same as the bond and bridge code.

I would simplify this, and make the net-device-bond code more generic and do checks like:
if (NM_IS_DEVICE_BRIDGE (object))
  slaves = nm_device_bridge_get_slaves (object);
else if (NM_IS_DEVICE_BOND (object))
  etc.

This patch looks find to commit to gnome-3-8 and gnome-3-10 though.

::: panels/network/net-device-team.c
@@ +100,3 @@
+        slaves = nm_device_team_get_slaves (nm_device);
+        if (!slaves) {
+                priv->slaves = g_strdup ("(none)");

Translation?
Though I see this is the same code as in the bond object.
Comment 5 Bastien Nocera 2013-12-13 14:13:08 UTC
Review of attachment 264147 [details] [review]:

Setting as reviewed.
Comment 6 Jiri Klimes 2013-12-17 14:50:37 UTC
(In reply to comment #4)
> Review of attachment 264147 [details] [review]:
> 
> The code looks like it's the exact same as the bond and bridge code.
> 
> I would simplify this, and make the net-device-bond code more generic and do
> checks like:
> if (NM_IS_DEVICE_BRIDGE (object))
>   slaves = nm_device_bridge_get_slaves (object);
> else if (NM_IS_DEVICE_BOND (object))
>   etc.
> 
Yeah, the team code is basically a copy of bond. Sure, it could be possible to make it more generic. However, the code paths may become different for bondxteamxbridge later. And I'm not familiar with the code much, so I'm not going to do that.

> This patch looks find to commit to gnome-3-8 and gnome-3-10 though.
> 
Will you handle that? I am not sure I have commit rights.

> ::: panels/network/net-device-team.c
> @@ +100,3 @@
> +        slaves = nm_device_team_get_slaves (nm_device);
> +        if (!slaves) {
> +                priv->slaves = g_strdup ("(none)");
> 
> Translation?
> Though I see this is the same code as in the bond object.

See next patch.
Comment 7 Jiri Klimes 2013-12-17 14:52:16 UTC
Created attachment 264409 [details] [review]
[patch] network: make "(none)" translatable
Comment 8 Bastien Nocera 2014-01-10 14:11:36 UTC
Review of attachment 264409 [details] [review]:

That looks fine for master. Please remove the signed-off-by in the commit message though.
Comment 9 Bastien Nocera 2014-01-10 14:13:01 UTC
Review of attachment 264147 [details] [review]:

Fine then, let's commit it.