Commit 032a3b47 authored by Beniamino Galvani's avatar Beniamino Galvani

cli: only return main setting names as connection types

Also, return the special slave types.
parent 243061ed
......@@ -2855,6 +2855,9 @@ get_valid_options_string_toplevel (void)
for (i = 0; i < _NM_META_SETTING_TYPE_NUM; i++) {
const NMMetaSettingInfoEditor *setting_info = &nm_meta_setting_infos_editor[i];
if (!setting_info->valid_parts)
if (str->len)
g_string_append (str, ", ");
if (setting_info->alias)
......@@ -2862,6 +2865,11 @@ get_valid_options_string_toplevel (void)
g_string_append (str, setting_info->general->setting_name);
if (str->len)
g_string_append (str, ", ");
g_string_append (str, "bond-slave, bridge-slave, team-slave");
return g_string_free (str, FALSE);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment