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-18 17:07:19 -0700 |
commit | 357958bd97dd3e0b1864dfb3d3f973c04c3602a9 (patch) | |
tree | 11aefbc0916276151ec1cad6b4bf526ed8cdcafc | |
parent | 94604f70b064883fe91e6c8a53deeb797d416084 (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 |