Fixing error in Flow Classifier creation (SFC) 01/7001/3
authorEduardo Sousa <esousa@whitestack.com>
Thu, 29 Nov 2018 14:55:01 +0000 (14:55 +0000)
committerEduardo Sousa <esousa@whitestack.com>
Tue, 11 Dec 2018 09:53:14 +0000 (09:53 +0000)
Fetching interfaces from the wrong place.

Change-Id: Ibce20543135272ef6b6ff1bca9d1e151972ec985
Signed-off-by: Eduardo Sousa <esousa@whitestack.com>
osm_ro/vim_thread.py

index 48c8e32..e611c5e 100644 (file)
@@ -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").