From 99260f95219301bb5c0b58921e793bcad6ec4990 Mon Sep 17 00:00:00 2001 From: ahothan Date: Mon, 8 Oct 2018 09:34:00 -0700 Subject: NFVBENCH-102 NFVBench won't work with external chain Change-Id: I47e9d128bca883573ea1b1e21ba49dc0305edcbb Signed-off-by: ahothan --- nfvbench/chain_managers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- cgit 1.2.3-korg