[network-manager-applet/jk/rh1075198-editor-team-bond] editor: allow creating bond/team connections without slaves (rh #1075198)



commit 5fb6bb514d6a506716bb4a9ad5dfbe1b4a8dd927
Author: Jiří Klimeš <jklimes redhat com>
Date:   Wed Mar 19 10:28:24 2014 +0100

    editor: allow creating bond/team connections without slaves (rh #1075198)
    
    Note that bridge connection already allow that.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1075198

 src/connection-editor/page-bond.c |    4 ----
 src/connection-editor/page-team.c |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/connection-editor/page-bond.c b/src/connection-editor/page-bond.c
index 2ffe3fd..718a398 100644
--- a/src/connection-editor/page-bond.c
+++ b/src/connection-editor/page-bond.c
@@ -540,10 +540,6 @@ validate (CEPage *page, NMConnection *connection, GError **error)
        if (!CE_PAGE_CLASS (ce_page_bond_parent_class)->validate (page, connection, error))
                return FALSE;
 
-       /* Need at least one slave connection */
-       if (!ce_page_master_has_slaves (CE_PAGE_MASTER (page)))
-               return FALSE;
-
        ui_to_setting (self);
        return nm_setting_verify (NM_SETTING (priv->setting), NULL, error);
 }
diff --git a/src/connection-editor/page-team.c b/src/connection-editor/page-team.c
index 2ccda3b..05be62d 100644
--- a/src/connection-editor/page-team.c
+++ b/src/connection-editor/page-team.c
@@ -292,10 +292,6 @@ validate (CEPage *page, NMConnection *connection, GError **error)
        if (!CE_PAGE_CLASS (ce_page_team_parent_class)->validate (page, connection, error))
                return FALSE;
 
-       /* Need at least one slave connection */
-       if (!ce_page_master_has_slaves (CE_PAGE_MASTER (page)))
-               return FALSE;
-
        ui_to_setting (self);
        return nm_setting_verify (NM_SETTING (priv->setting), NULL, error);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]