From a04808bbda3b4a626a555d105f5f96bbee862f4f Mon Sep 17 00:00:00 2001 From: peusterm Date: Sat, 16 Nov 2019 08:30:42 +0100 Subject: [PATCH] Feature: Support for ipc_mode and devices keywords in 5GTANGO LLCM. Change-Id: Iff85f5c9b71e298b9000567eef7c61a8295f5fa5 Signed-off-by: peusterm --- src/emuvim/api/tango/llcm.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.25.1