mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 12:10:09 +01:00
cli: fix default value for team.runner-min-ports
The default value is "1", not "0". Also, because "0" is not actually a
valid value as far as teamd is concerned. This fixes:
$ nmcli connection add type team autoconnect no con-name t team.runner lacp team.runner-min-ports default
Error: Failed to add 't' connection: team.runner-min-ports: value out or range
See "teamd.conf" manual:
runner.min_ports (int)
Specifies the minimum number of ports that must be active before asserting
carrier in the master interface, value can be 1 – 255.
Default: 1
This mistake probably happend because the teamd manual is wrong in older versions [1].
[1] f36c191da3
https://bugzilla.redhat.com/show_bug.cgi?id=1716987
This commit is contained in:
parent
356a159731
commit
91d8038a81
1 changed files with 1 additions and 1 deletions
|
|
@ -6574,7 +6574,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM[] = {
|
||||||
.nick = "unset",
|
.nick = "unset",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.value.i64 = 0,
|
.value.i64 = 1,
|
||||||
.nick = "default",
|
.nick = "default",
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue