Commit 03fd18cd authored by Thomas Haller's avatar Thomas Haller
Browse files

cli: fix setting 'slave-type' for `nmcli connection add type *-slave`

  $ nmcli connection add type bond-slave ifname eth1 con-name bond0.0 master nm-bond
  Error: Failed to add 'bond0.0' connection: connection.slave-type: Cannot set 'master' without 'slave-type'

Fixes: 8ad218e7
parent 6fa521b3
......@@ -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;
}
......
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