diff options
author | ahothan <ahothan@cisco.com> | 2019-02-27 17:31:31 -0800 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2019-02-27 17:31:31 -0800 |
commit | 7d83fb2596b3128ba47a7ac1e263e6926a0befd3 (patch) | |
tree | b69a58cd1b7a95c72ead54dbe72c9dc41b5f4881 /nfvbench/chain_runner.py | |
parent | afb3ff0092801294a8a7893c24440cfd321f6e56 (diff) |
NFVBENCH-123 EXT chain does not work with VXLAN3.0.6
Pick up the dest mac from config in case of EXT VxLAN
Change-Id: Ib1a625ab62fa9c7675456340d5eb73e4d04ccff0
Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/chain_runner.py')
-rw-r--r-- | nfvbench/chain_runner.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nfvbench/chain_runner.py b/nfvbench/chain_runner.py index a4e461d..627e9ea 100644 --- a/nfvbench/chain_runner.py +++ b/nfvbench/chain_runner.py @@ -74,8 +74,11 @@ class ChainRunner(object): # the only case we do not need to set the dest MAC is in the case of # l2-loopback (because the traffic gen will default to use the peer MAC) - # or EXT+ARP (because dest MAC will be discovered by TRex ARP) - if not config.l2_loopback and (config.service_chain != ChainType.EXT or config.no_arp): + # or EXT+ARP+VLAN (because dest MAC will be discovered by TRex ARP) + # Note that in the case of EXT+ARP+VxLAN, the dest MACs need to be loaded + # because ARP only operates on the dest VTEP IP not on the VM dest MAC + if not config.l2_loopback and \ + (config.service_chain != ChainType.EXT or config.no_arp or config.vxlan): gen_config.set_dest_macs(0, self.chain_manager.get_dest_macs(0)) gen_config.set_dest_macs(1, self.chain_manager.get_dest_macs(1)) |