From 85408ed517f100c3e477efd35e54630bf9171af0 Mon Sep 17 00:00:00 2001 From: peusterm Date: Wed, 4 Dec 2019 14:02:02 +0100 Subject: [PATCH] Fix: Correctly handle cap_add in 5GTANGO LLCM Change-Id: I98666f105117194cad27dd6b3686cbec72574f3c Signed-off-by: peusterm --- src/emuvim/api/tango/llcm.py | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.25.1