cli: fix default value for team.runner-min-ports

System Internals / NetworkManager - Thomas Haller [redhat.com] - 11 June 2019 11:25 EDT

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] https://github.com/jpirko/libteam/commit/f36c191da3d65a4744582b2eb09fa297dd85f9ae

https://bugzilla.redhat.com/show_bug.cgi?id=1716987

91d8038a8 cli: fix default value for team.runner-min-ports
clients/common/nm-meta-setting-desc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share