From a098b058d6dd3ccac6ac2acebe063e864c27f2e0 Mon Sep 17 00:00:00 2001 From: Eduardo Sousa Date: Thu, 29 Nov 2018 14:55:01 +0000 Subject: [PATCH] Fixing error in Flow Classifier creation (SFC) Fetching interfaces from the wrong place. Change-Id: Ibce20543135272ef6b6ff1bca9d1e151972ec985 Signed-off-by: Eduardo Sousa --- osm_ro/vim_thread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_ro/vim_thread.py b/osm_ro/vim_thread.py index 48c8e326..e611c5e7 100644 --- a/osm_ro/vim_thread.py +++ b/osm_ro/vim_thread.py @@ -1162,9 +1162,9 @@ class vim_thread(threading.Thread): try: params = task["params"] task_id = task["instance_action_id"] + "." + str(task["task_index"]) - depending_task = "TASK-" + str(task.get("extra").get("depends_on")[0]) + dep_id = "TASK-" + str(task["extra"]["depends_on"][0]) error_text = "" - interfaces = task.get("depends").get(depending_task).get("vim_interfaces").keys() + interfaces = task.get("depends").get(dep_id).get("extra").get("interfaces").keys() # Bear in mind that different VIM connectors might support Classifications differently. # In the case of OpenStack, only the first VNF attached to the classifier will be used # to create the Classification(s) (the "logical source port" of the "Flow Classifier"). -- 2.25.1