From 176b9fbe58dcea5eab26ac2c9fba16c7ddeb8942 Mon Sep 17 00:00:00 2001 From: peusterm Date: Sat, 13 Apr 2019 14:55:22 +0200 Subject: [PATCH] Made tng-bench compatible to https://github.com/sonata-nfv/son-emu/issues/294 Signed-off-by: peusterm --- src/tngsdk/benchmark/pdriver/vimemu/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tngsdk/benchmark/pdriver/vimemu/__init__.py b/src/tngsdk/benchmark/pdriver/vimemu/__init__.py index 57962e1..8a9e3d7 100644 --- a/src/tngsdk/benchmark/pdriver/vimemu/__init__.py +++ b/src/tngsdk/benchmark/pdriver/vimemu/__init__.py @@ -58,8 +58,8 @@ MP_IN_KEY = "ep::function::mp.input::" MP_OUT_KEY = "ep::function::mp.output::" # FIXME currently the keys for selecting the MPs are fixed -MP_IN_NAME = "mp.input.vdu01" -MP_OUT_NAME = "mp.output.vdu01" +MP_IN_NAME = "mp.input.vdu01.0" +MP_OUT_NAME = "mp.output.vdu01.0" class VimEmuDriver(object): @@ -241,7 +241,7 @@ def get_cname_by_parameter(self, ec, param_func_name, param_unit_name): """ if param_unit_name is None: # case (a) param_unit_name = "vdu01" # FIXME thus we use "vdu01" as default - return "{}.{}".format( + return "{}.{}.0".format( # FIXME assumes single service instance ".0" ec.function_ids.get( param_func_name, param_func_name), param_unit_name)