NFVBENCH-102 NFVBench won't work with external chain 83/63283/2 1.5.3
authorahothan <ahothan@cisco.com>
Mon, 8 Oct 2018 16:34:00 +0000 (09:34 -0700)
committerahothan <ahothan@cisco.com>
Mon, 8 Oct 2018 17:14:13 +0000 (10:14 -0700)
Change-Id: I47e9d128bca883573ea1b1e21ba49dc0305edcbb
Signed-off-by: ahothan <ahothan@cisco.com>
nfvbench/chain_managers.py

index 9cd6c7d..5882913 100644 (file)
@@ -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,