From: stevenvanrossem Date: Fri, 5 Aug 2016 12:59:58 +0000 (+0200) Subject: dummy GK should not deploy mgmt network, mgmt network can be considered as the defaul... X-Git-Tag: v3.1~87 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c59802b0dd25bf98af92d332a538c16cc4dc537d;p=osm%2Fvim-emu.git dummy GK should not deploy mgmt network, mgmt network can be considered as the default docker0 bridge in the emulator --- diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index 0fb3aa0..bea0a01 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -225,7 +225,9 @@ class Service(object): # 3. do the dc.startCompute(name="foobar") call to run the container # TODO consider flavors, and other annotations intfs = vnfd.get("connection_points") - + # mgmt connection points can be skipped, this is considered to be the connection the default docker0 bridge + intfs = [intf for intf in intfs if 'mgmt' not in intf['id']] + # use the vnf_id in the nsd as docker name # so deployed containers can be easily mapped back to the nsd vnf_name2id = defaultdict(lambda: "NotExistingNode",