In IPv6 scenarios the devices contain also automatically configured
link-local addresses. Currently the selection of addresses chosen for the
Perf flows is not deterministic and may select the link local address.
This is fixed by adding the same filter that we have for ping
configurations.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Recipes/ENRT/BaseEnrtRecipe.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lnst/Recipes/ENRT/BaseEnrtRecipe.py b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
index 51b9348..bd26cbe 100644
--- a/lnst/Recipes/ENRT/BaseEnrtRecipe.py
+++ b/lnst/Recipes/ENRT/BaseEnrtRecipe.py
@@ -201,13 +201,15 @@ class BaseEnrtRecipe(BaseSubConfigMixin, PingTestAndEvaluate,
PerfRecipe):
def generate_flow_combinations(self, config):
for client_nic, server_nic in self.generate_perf_endpoints(config):
for ipv in self.params.ip_versions:
+ ip_filter = {}
if ipv == "ipv4":
- family = AF_INET
+ ip_filter.update(family = AF_INET)
elif ipv == "ipv6":
- family = AF_INET6
+ ip_filter.update(family = AF_INET6)
+ ip_filter.update(is_link_local = False)
- client_bind = client_nic.ips_filter(family=family)[0]
- server_bind = server_nic.ips_filter(family=family)[0]
+ client_bind = client_nic.ips_filter(**ip_filter)[0]
+ server_bind = server_nic.ips_filter(**ip_filter)[0]
for perf_test in self.params.perf_tests:
for size in self.params.perf_msg_sizes:
--
2.21.1
_______________________________________________
LNST-developers mailing list -- lnst-developers(a)lists.fedorahosted.org
To unsubscribe send an email to lnst-developers-leave(a)lists.fedorahosted.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedorahosted.org/archives/list/lnst-developers@lists.fedora...