Fix: Correctly handle cap_add in 5GTANGO LLCM 16/8316/1 v7.0 v7.0.0 v7.0.0rc1 v7.0.1 v7.0.1rc1 v7.0.1rc2 v7.0.1rc3 v7.1.0 v7.1.0rc2 v7.1.0rc3 v7.1.0rc4 v7.1.0rc5 v7.1.0rc6 v7.1.2 v7.1.3 v7.1.4 v7.1.5
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 4 Dec 2019 13:02:02 +0000 (14:02 +0100)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 4 Dec 2019 13:02:02 +0000 (14:02 +0100)
Change-Id: I98666f105117194cad27dd6b3686cbec72574f3c
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
src/emuvim/api/tango/llcm.py

index 6e52051..bd3e1f9 100755 (executable)
@@ -425,6 +425,8 @@ class Service(object):
             ipc_mode = u.get("ipc_mode", None)
             # 5.4 handle optional devices setting
             devices = u.get("devices", [])
+            # 5.5 handle optional cap_add setting
+            cap_add = u.get("cap_add", [])
 
             # 6. Start the container
             LOG.info("Starting %r as %r in DC %r" %
@@ -447,6 +449,7 @@ class Service(object):
                 publish_all_ports=False,
                 ipc_mode=ipc_mode,
                 devices=devices,
+                cap_add=cap_add,
                 type=kwargs.get('type', 'docker'))
             # add vnfd reference to vnfi
             vnfi.vnfd = vnfd