Several phase2 recipes use common python task team_test.py. There's a bug
in the check of interface type that appears when recipe
active_backup_team_vs_active_backup_bond.xml is run.
In this recipe the interface type is bond and the condition matches only
team type and therefore the cpu pinning of NIC irqs is incorrect.
The fix is to add bond type to the condition.
Fixes #180
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
recipes/regression_tests/phase2/team_test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes/regression_tests/phase2/team_test.py b/recipes/regression_tests/phase2/team_test.py
index db327b3..c61f721 100644
--- a/recipes/regression_tests/phase2/team_test.py
+++ b/recipes/regression_tests/phase2/team_test.py
@@ -68,7 +68,7 @@ if nperf_cpupin:
m1_phy2 = m1.get_interface("eth2")
dev_list = [(m1, m1_phy1), (m1, m1_phy2)]
- if test_if2.get_type() == "team":
+ if test_if2.get_type() in [ "team", "bond" ]:
m2_phy1 = m2.get_interface("eth1")
m2_phy2 = m2.get_interface("eth2")
dev_list.extend([(m2, m2_phy1), (m2, m2_phy2)])
--
2.7.4