Merge "BugFix: Negative dropped packets in Prox tests"
[yardstick.git] / yardstick / network_services / vnf_generic / vnf / prox_vnf.py
index 3bfca19..b7d295e 100644 (file)
@@ -89,9 +89,9 @@ class ProxApproxVnf(SampleVNF):
             return {}
 
         result = {
-            "packets_in": tx_total,
-            "packets_dropped": (tx_total - rx_total),
-            "packets_fwd": rx_total,
+            "packets_in": rx_total,
+            "packets_dropped": max((tx_total - rx_total), 0),
+            "packets_fwd": tx_total,
             # we share ProxResourceHelper with TG, but we want to collect
             # collectd KPIs here and not TG KPIs, so use a different method name
             "collect_stats": self.resource_helper.collect_collectd_kpi(),