aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-10-08 09:34:00 -0700
committerahothan <ahothan@cisco.com>2018-10-08 10:14:13 -0700
commit99260f95219301bb5c0b58921e793bcad6ec4990 (patch)
treed84ab31d9a4b4d7ba4b20dacc66121afff2e7c1b
parent59db88a0554459514e40fd512e3d105820a9086f (diff)
NFVBENCH-102 NFVBench won't work with external chain1.5.3
Change-Id: I47e9d128bca883573ea1b1e21ba49dc0305edcbb Signed-off-by: ahothan <ahothan@cisco.com>
-rw-r--r--nfvbench/chain_managers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nfvbench/chain_managers.py b/nfvbench/chain_managers.py
index 9cd6c7d..5882913 100644
--- a/nfvbench/chain_managers.py
+++ b/nfvbench/chain_managers.py
@@ -81,7 +81,10 @@ class PVPStatsManager(object):
self._setup()
def set_vlan_tag(self, device, vlan):
- self.worker.set_vlan_tag(device, vlan)
+ if self.worker:
+ self.worker.set_vlan_tag(device, vlan)
+ else:
+ device.set_vlan_tag(vlan)
def _setup(self):
WORKER_CLASS = self.factory.get_chain_worker(self.specs.openstack.encaps,