Minor improvements in 5GTANGO LLCM module.
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 3 Oct 2018 11:39:28 +0000 (13:39 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 3 Oct 2018 11:39:28 +0000 (13:39 +0200)
Change-Id: Ia1236038f1d25118d7b97574a50e306c9d19fed8
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
src/emuvim/api/tango/llcm.py

index 17dd175..3beacce 100755 (executable)
@@ -346,6 +346,11 @@ class Service(object):
             # check if we need to deploy the management ports (defined as
             # type:management both on in the vnfd and nsd)
             intfs = vnfd.get("connection_points", [])
+            # do some re-naming of fields to be compatible to containernet
+            for i in intfs:
+                if i.get("address"):
+                    i["ip"] = i.get("address")
+
             mgmt_intf_names = []
             if USE_DOCKER_MGMT:
                 mgmt_intfs = [vnf_id + ':' + intf['id']
@@ -1049,7 +1054,7 @@ class Packages(fr.Resource):
             file_hash = hashlib.sha1(str(son_file)).hexdigest()
             # ensure that upload folder exists
             ensure_dir(UPLOAD_FOLDER)
-            upload_path = os.path.join(UPLOAD_FOLDER, "%s.son" % service_uuid)
+            upload_path = os.path.join(UPLOAD_FOLDER, "%s.tgo" % service_uuid)
             # store *.son file to disk
             if is_file_object:
                 son_file.save(upload_path)