From ae838f98fa020d0ad0aa37ab58e02456889c3375 Mon Sep 17 00:00:00 2001 From: fmenguy Date: Wed, 22 Jan 2020 16:00:48 +0100 Subject: NFVBENCH-157 Add possibility to not use the ARP static configuration for VPP loop VM Change-Id: Ifd3f183345e21c7866e9e9898c7bbda601793b2c Signed-off-by: fmenguy --- nfvbench/chaining.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nfvbench/chaining.py') 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( -- cgit 1.2.3-korg