From: peusterm Date: Wed, 11 May 2016 14:25:50 +0000 (+0200) Subject: Quickfix: Chaining in dummy GK does not work with example package X-Git-Tag: v3.1~128^2~3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3b21649946c32a3525175fa4949b0ac0f488ed31;p=osm%2Fvim-emu.git Quickfix: Chaining in dummy GK does not work with example package --- diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index 2047ff8..8423a31 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -134,8 +134,9 @@ class Service(object): src_node, src_port = link["connection_points_reference"][0].split(":") dst_node, dst_port = link["connection_points_reference"][1].split(":") - network = self.vnfds[src_node].get("dc").net # there should be a cleaner way to find the DCNetwork - network.setChain(src_node, dst_node, vnf_src_interface=src_port, vnf_dst_interface=dst_port) + if src_node in self.vnfds: + network = self.vnfds[src_node].get("dc").net # there should be a cleaner way to find the DCNetwork + network.setChain(src_node, dst_node, vnf_src_interface=src_port, vnf_dst_interface=dst_port) LOG.info("Service started. Instance id: %r" % instance_uuid) return instance_uuid