cli: fix setting 'slave-type' for `nmcli connection add type *-slave`
[NetworkManager.git] / clients / cli / connections.c
index 0158dc2..3fca37f 100644 (file)
@@ -4783,6 +4783,9 @@ complete_slave (NMSettingConnection *s_con,
                                             _("Error: redundant 'master' option."));
                        return FALSE;
                }
+               g_object_set (s_con,
+                             NM_SETTING_CONNECTION_SLAVE_TYPE, slave_type,
+                             NULL);
                return TRUE;
        }