BugFix: Negative dropped packets in Prox tests 45/45845/2
authorAbhijit Sinha <abhijit.sinha@intel.com>
Wed, 18 Oct 2017 15:44:45 +0000 (16:44 +0100)
committerRoss Brattain <ross.b.brattain@intel.com>
Thu, 19 Oct 2017 16:01:56 +0000 (16:01 +0000)
commitc0b3d5a7abc6acd0282c063844471ed6aa02d36b
treea985b4d0e96d62d16652eee44cc8f219c8068862
parentb3ebb0526501cba14055e00ee16606f85f6212eb
BugFix: Negative dropped packets in Prox tests

Removed the abs function which can potentially mask
negative dropped packets.

Dropped packets in Prox workload VNF = max((tx_packets - rx_packets), 0)

Change-Id: I510a351e899cdf9a1f366d632b9f0528b1d9dcce
Signed-off-by: Abhijit Sinha <abhijit.sinha@intel.com>
(cherry picked from commit a27278dacaa54ae60cd3bdfa6e6145643f76fa02)
tests/unit/network_services/vnf_generic/vnf/test_prox_vnf.py
yardstick/network_services/vnf_generic/vnf/prox_vnf.py