From: Sridhar K. N. Rao Date: Mon, 2 May 2022 14:16:18 +0000 (+0530) Subject: [BUGFIX] Bug-fix in Trex-Client. X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=85211e5d65ddafa0919f299a48527ede026e78c2;p=vineperf.git [BUGFIX] Bug-fix in Trex-Client. This patch adds the fix Signed-off-by: Sridhar K. N. Rao Change-Id: Iee914ac737d088bd06bf8e762e9c6c588bc0b03e --- diff --git a/tools/pkt_gen/trex/trex_client.py b/tools/pkt_gen/trex/trex_client.py index 680497ec..01d4d389 100644 --- a/tools/pkt_gen/trex/trex_client.py +++ b/tools/pkt_gen/trex/trex_client.py @@ -108,7 +108,7 @@ class Trex(ITrafficGenerator): self._stlclient = None self._verification_params = None self._show_packet_data = False - self.trial_results = [] + self.trial_results = {} def show_packet_info(self, packet_a, packet_b): """ @@ -521,8 +521,8 @@ class Trex(ITrafficGenerator): return stats - @staticmethod - def calculate_results(stats): + # @staticmethod + def calculate_results(self, stats): """Calculate results from Trex statistic """ result = OrderedDict()