summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,