From: peusterm Date: Sat, 16 Nov 2019 07:30:42 +0000 (+0100) Subject: Feature: Support for ipc_mode and devices keywords in 5GTANGO LLCM. X-Git-Tag: v7.0.0rc1~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F8179%2F1;p=osm%2Fvim-emu.git Feature: Support for ipc_mode and devices keywords in 5GTANGO LLCM. Change-Id: Iff85f5c9b71e298b9000567eef7c61a8295f5fa5 Signed-off-by: peusterm --- diff --git a/src/emuvim/api/tango/llcm.py b/src/emuvim/api/tango/llcm.py index 8940388..6e52051 100755 --- a/src/emuvim/api/tango/llcm.py +++ b/src/emuvim/api/tango/llcm.py @@ -421,6 +421,11 @@ class Service(object): conf_envs = self._load_instance_conf_envs(vnf_container_instance_name) cenv.update(conf_envs) + # 5.3 handle optional ipc_mode setting + ipc_mode = u.get("ipc_mode", None) + # 5.4 handle optional devices setting + devices = u.get("devices", []) + # 6. Start the container LOG.info("Starting %r as %r in DC %r" % (vnf_name, vnf_container_instance_name, target_dc)) @@ -440,6 +445,8 @@ class Service(object): port_bindings=port_bindings, # only publish if explicitly stated in descriptor publish_all_ports=False, + ipc_mode=ipc_mode, + devices=devices, type=kwargs.get('type', 'docker')) # add vnfd reference to vnfi vnfi.vnfd = vnfd