From 9e1dfbcc3b8d49ae1ea66a1ca6907073c867daab Mon Sep 17 00:00:00 2001 From: "Mytnyk, Volodymyr" Date: Tue, 22 Jan 2019 15:31:07 +0000 Subject: Fix UDPReplay VNF statistic parsing Fixed UDPReplay statistic parsing according to changes made in UDPReplay sample VNF. JIRA: YARDSTICK-1609 Change-Id: I093f6612cc736695fa96f15dce374c949d8c3459 Signed-off-by: Mytnyk, Volodymyr --- yardstick/network_services/vnf_generic/vnf/udp_replay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yardstick/network_services/vnf_generic') diff --git a/yardstick/network_services/vnf_generic/vnf/udp_replay.py b/yardstick/network_services/vnf_generic/vnf/udp_replay.py index 3f9994486..a3b0b9fd9 100644 --- a/yardstick/network_services/vnf_generic/vnf/udp_replay.py +++ b/yardstick/network_services/vnf_generic/vnf/udp_replay.py @@ -109,7 +109,7 @@ class UdpReplayApproxVnf(SampleVNF): def collect_kpi(self): def get_sum(offset): - return sum(int(i) for i in split_stats[offset::5]) + return sum(int(i) for i in split_stats[offset::6]) # we can't get KPIs if the VNF is down check_if_process_failed(self._vnf_process) @@ -117,7 +117,7 @@ class UdpReplayApproxVnf(SampleVNF): stats = self.get_stats() stats_words = stats.split() - split_stats = stats_words[stats_words.index('0'):][:number_of_ports * 5] + split_stats = stats_words[stats_words.index('arp_pkts') + 1:][:number_of_ports * 6] physical_node = ctx_base.Context.get_physical_node_from_server( self.scenario_helper.nodes[self.name]) -- cgit 1.2.3-korg