diff options
author | DanielMartinBuckley <daniel.m.buckley@intel.com> | 2017-10-13 11:34:49 +0100 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2017-10-13 18:34:31 +0000 |
commit | 4dc75ed6cfe14f24fd91122da52bc9a9168e84c0 (patch) | |
tree | 9efa02e020d8f12d2d119a881ac62711df615bd3 | |
parent | 3582056de8f3ed4b8f7ffaf710c3eebc4b0ac3f2 (diff) |
BugFix: Fix to negative dropped packets appearing in results.
As per defect:
the "VNF packets dropped" time series is negative - negative number of packets dropped
is not meaningful.
Solution:
Return a positive value.
Change-Id: I358006a691f2d6b5954333b9f7a745aba97ae44f
Signed-off-by: Daniel Martin Buckley <daniel.m.buckley@intel.com>
-rw-r--r-- | yardstick/network_services/vnf_generic/vnf/prox_vnf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/prox_vnf.py b/yardstick/network_services/vnf_generic/vnf/prox_vnf.py index 3bfca19aa..24712dd27 100644 --- a/yardstick/network_services/vnf_generic/vnf/prox_vnf.py +++ b/yardstick/network_services/vnf_generic/vnf/prox_vnf.py @@ -90,7 +90,7 @@ class ProxApproxVnf(SampleVNF): result = { "packets_in": tx_total, - "packets_dropped": (tx_total - rx_total), + "packets_dropped": abs(rx_total - tx_total), "packets_fwd": rx_total, # we share ProxResourceHelper with TG, but we want to collect # collectd KPIs here and not TG KPIs, so use a different method name |