From: peusterm Date: Wed, 3 Oct 2018 11:39:28 +0000 (+0200) Subject: Minor improvements in 5GTANGO LLCM module. X-Git-Tag: v5.0.0~6 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=519e3cb0c7312b4c6a0b55b5eaf15d78138b2a47;p=osm%2Fvim-emu.git Minor improvements in 5GTANGO LLCM module. Change-Id: Ia1236038f1d25118d7b97574a50e306c9d19fed8 Signed-off-by: peusterm --- diff --git a/src/emuvim/api/tango/llcm.py b/src/emuvim/api/tango/llcm.py index 17dd175..3beacce 100755 --- a/src/emuvim/api/tango/llcm.py +++ b/src/emuvim/api/tango/llcm.py @@ -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)