summaryrefslogtreecommitdiffstats
path: root/nfvbench/chain_runner.py
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-04-21 18:26:41 +0200
committerfmenguy <francoisregis.menguy@orange.com>2021-03-30 09:12:15 +0200
commit8755c892f6cfbfb8ca4f3405675dfe770c769605 (patch)
treee54372ba440ea7f9c1815a31936b3d3d97fe25d4 /nfvbench/chain_runner.py
parentc3e9d0fc0076f0a2930f13366255b0e8e65fb814 (diff)
NFVBENCH-163: Add gratuitous ARP in case of L3 router mode
Change-Id: Iec2b186176285f723eb2685319c55e6cd6d33a8a Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/chain_runner.py')
-rw-r--r--nfvbench/chain_runner.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfvbench/chain_runner.py b/nfvbench/chain_runner.py
index 7bb3bbc..f045528 100644
--- a/nfvbench/chain_runner.py
+++ b/nfvbench/chain_runner.py
@@ -155,7 +155,10 @@ class ChainRunner(object):
if self.config.single_run:
result['run_config'] = self.traffic_client.get_run_config(result)
required = result['run_config']['direction-total']['orig']['rate_pps']
- actual = result['stats']['total_tx_rate']
+ if self.config.periodic_gratuitous_arp:
+ actual = result['stats']['total_tx_rate'] + self.config.gratuitous_arp_pps
+ else:
+ actual = result['stats']['total_tx_rate']
warning = self.traffic_client.compare_tx_rates(required, actual)
if warning is not None:
result['run_config']['warning'] = warning