From: Eduardo Sousa Date: Thu, 29 Nov 2018 14:55:01 +0000 (+0000) Subject: Fixing error in Flow Classifier creation (SFC) X-Git-Tag: v5.0.3~13 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=a098b058d6dd3ccac6ac2acebe063e864c27f2e0;hp=a3ebc3637f8b1a2b7e4f6dc8ce5a33fefcc2b9eb Fixing error in Flow Classifier creation (SFC) Fetching interfaces from the wrong place. Change-Id: Ibce20543135272ef6b6ff1bca9d1e151972ec985 Signed-off-by: Eduardo Sousa --- 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").