Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Ansible: fix lowercasing issue with ConfigParser"
[yardstick.git]
/
yardstick
/
network_services
/
vnf_generic
/
vnf
/
prox_vnf.py
diff --git
a/yardstick/network_services/vnf_generic/vnf/prox_vnf.py
b/yardstick/network_services/vnf_generic/vnf/prox_vnf.py
index
24712dd
..
b7d295e
100644
(file)
--- a/
yardstick/network_services/vnf_generic/vnf/prox_vnf.py
+++ b/
yardstick/network_services/vnf_generic/vnf/prox_vnf.py
@@
-89,9
+89,9
@@
class ProxApproxVnf(SampleVNF):
return {}
result = {
return {}
result = {
- "packets_in":
t
x_total,
- "packets_dropped":
abs(rx_total - tx_total
),
- "packets_fwd":
r
x_total,
+ "packets_in":
r
x_total,
+ "packets_dropped":
max((tx_total - rx_total), 0
),
+ "packets_fwd":
t
x_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(),
# 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(),