mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 12:40:16 +01:00
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:
parent
6fa521b384
commit
03fd18cde0
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue