Skip to content

Commit

Permalink
Fix: Correctly handle cap_add in 5GTANGO LLCM
Browse files Browse the repository at this point in the history
Change-Id: I98666f105117194cad27dd6b3686cbec72574f3c
Signed-off-by: peusterm <manuel.peuster@uni-paderborn.de>
  • Loading branch information
peusterm committed Dec 4, 2019
1 parent a04808b commit 85408ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/emuvim/api/tango/llcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ def _start_vnfd(self, vnfd, vnf_id, ssiid, **kwargs):
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" %
Expand All @@ -447,6 +449,7 @@ def _start_vnfd(self, vnfd, vnf_id, ssiid, **kwargs):
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
Expand Down

0 comments on commit 85408ed

Please sign in to comment.