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:
Thomas Haller 2019-06-11 12:01:56 +02:00
parent 356a159731
commit 91d8038a81

View file

@ -6574,7 +6574,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM[] = {
.nick = "unset",
},
{
.value.i64 = 0,
.value.i64 = 1,
.nick = "default",
},
),