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: 8ad218e71c
This commit is contained in:
Thomas Haller
2016-03-30 18:33:14 +02:00
parent 6fa521b384
commit 03fd18cde0

View 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;
}