Feature: Support for ipc_mode and devices keywords in 5GTANGO LLCM. 79/8179/1
authorpeusterm <manuel.peuster@uni-paderborn.de>
Sat, 16 Nov 2019 07:30:42 +0000 (08:30 +0100)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Sat, 16 Nov 2019 07:30:42 +0000 (08:30 +0100)
Change-Id: Iff85f5c9b71e298b9000567eef7c61a8295f5fa5
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
src/emuvim/api/tango/llcm.py

index 8940388..6e52051 100755 (executable)
@@ -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