From: peusterm Date: Wed, 4 Dec 2019 13:02:02 +0000 (+0100) Subject: Fix: Correctly handle cap_add in 5GTANGO LLCM X-Git-Tag: v7.1.0rc2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c129babf6ad6b01ee21d76ede7a22fcdbca827ae;p=osm%2Fvim-emu.git Fix: Correctly handle cap_add in 5GTANGO LLCM Change-Id: I98666f105117194cad27dd6b3686cbec72574f3c Signed-off-by: peusterm --- diff --git a/src/emuvim/api/tango/llcm.py b/src/emuvim/api/tango/llcm.py index 6e52051..bd3e1f9 100755 --- a/src/emuvim/api/tango/llcm.py +++ b/src/emuvim/api/tango/llcm.py @@ -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