aboutsummaryrefslogtreecommitdiffstats
path: root/core/pktfwd_controller.py
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-26 18:42:33 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-28 15:30:27 +0530
commit27999d960e8849ef3d689e405a5aa5cb7fe7f6b6 (patch)
treef23ef17fc75df3d87064470bd220f22913185d7c /core/pktfwd_controller.py
parentd5c0a03054f720da2a5ff9eba74feee57fb0296d (diff)
BUGFIXES: From Kali pre-release testing.
Multiple bug-fixes from thorough testing. More fixes added. Fix for Non-BLocking Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: Idd2fb214ab6dc4eba8a834ab13ecaa29ff09445e
Diffstat (limited to 'core/pktfwd_controller.py')
-rw-r--r--core/pktfwd_controller.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/pktfwd_controller.py b/core/pktfwd_controller.py
index 363302c3..2b6a008c 100644
--- a/core/pktfwd_controller.py
+++ b/core/pktfwd_controller.py
@@ -33,8 +33,11 @@ class PktFwdController(object):
self._deployment = deployment
self._logger = logging.getLogger(__name__)
self._pktfwd_class = pktfwd_class
- self._pktfwd = pktfwd_class(guest=True if deployment == "pvp" and
- settings.getValue('VNF') != "QemuPciPassthrough" else False)
+ if 'DummyFWD' in settings.getValue("PKTFWD") or 'pc' in deployment:
+ self._pktfwd = pktfwd_class()
+ else:
+ self._pktfwd = pktfwd_class(guest=True if deployment == "pvp" and
+ settings.getValue('VNF') != "QemuPciPassthrough" else False)
self._logger.debug('Creation using %s', str(self._pktfwd_class))
def setup(self):