From 3a2fe6d13d450d257f12ab06bf671c9da18ca6b8 Mon Sep 17 00:00:00 2001 From: Gris Ge Date: Fri, 11 Mar 2022 06:09:59 +0800 Subject: [PATCH] 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 --- module_utils/network_lsr/argument_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_utils/network_lsr/argument_validator.py b/module_utils/network_lsr/argument_validator.py index 7064227..55abf3f 100644 --- a/module_utils/network_lsr/argument_validator.py +++ b/module_utils/network_lsr/argument_validator.py @@ -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",