InfiniBand bond: Fix typo of bond mode active-backup

The correct bond mode is `active-backup` instead of `active_backup`.

Thanks to vpal who found this issue via
https://github.com/linux-system-roles/network/issues/475

Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
Gris Ge 2022-03-11 06:09:59 +08:00 committed by Till Maas
parent dfcd294552
commit 3a2fe6d13d

View file

@ -2079,7 +2079,7 @@ class ArgValidator_ListConnections(ArgValidatorList):
"type by '%s'" % (connection["controller"], c["type"]),
)
if connection["type"] == "infiniband":
if c["type"] == "bond" and c["bond"]["mode"] != "active_backup":
if c["type"] == "bond" and c["bond"]["mode"] != "active-backup":
raise ValidationError(
name + "[" + str(idx) + "].controller",
"bond only supports infiniband ports in active-backup mode",