summaryrefslogtreecommitdiffstats
path: root/nfvbench/chaining.py
diff options
context:
space:
mode:
authorfmenguy <francoisregis.menguy@orange.com>2020-01-22 16:00:48 +0100
committerfmenguy <francoisregis.menguy@orange.com>2020-01-23 15:40:20 +0100
commitae838f98fa020d0ad0aa37ab58e02456889c3375 (patch)
treefff47c59632bf76053df08c860ded46fccafd1a2 /nfvbench/chaining.py
parent95f2491ed89ac99b0d8bd006b4a13cbeb1eb96ce (diff)
NFVBENCH-157 Add possibility to not use the ARP static configuration for VPP loop VM
Change-Id: Ifd3f183345e21c7866e9e9898c7bbda601793b2c Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/chaining.py')
-rw-r--r--nfvbench/chaining.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/nfvbench/chaining.py b/nfvbench/chaining.py
index a8d6295..71693be 100644
--- a/nfvbench/chaining.py
+++ b/nfvbench/chaining.py
@@ -456,8 +456,12 @@ class ChainVnf(object):
else:
tg_gateway1_ip = devices[LEFT].tg_gateway_ip_addrs
tg_gateway2_ip = devices[RIGHT].tg_gateway_ip_addrs
- tg_mac1 = remote_mac_pair[0]
- tg_mac2 = remote_mac_pair[1]
+ if not config.loop_vm_arp:
+ tg_mac1 = remote_mac_pair[0]
+ tg_mac2 = remote_mac_pair[1]
+ else:
+ tg_mac1 = ""
+ tg_mac2 = ""
g1cidr = devices[LEFT].get_gw_ip(
self.chain.chain_id) + self.__get_network_mask(