From: peusterm Date: Mon, 26 Jun 2017 14:15:07 +0000 (+0200) Subject: Fix: Disable dummy GK chaining if no forwarding graph section is present in NSD X-Git-Tag: v3.1~17^2~6^2~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=91ab45c3597625b4c2ba8133ac1d80b82d9a0d6d;p=osm%2Fvim-emu.git Fix: Disable dummy GK chaining if no forwarding graph section is present in NSD --- diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index 759ed41..f37d2ff 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -211,7 +211,9 @@ class Service(object): self._start_sap(self.saps[sap], instance_uuid) # 5. Deploy E-Line and E_LAN links - if "virtual_links" in self.nsd: + # Attention: Only done if ""forwarding_graphs" section in NSD exists, + # even if "forwarding_graphs" are not used directly. + if "virtual_links" in self.nsd and "forwarding_graphs" in self.nsd: vlinks = self.nsd["virtual_links"] # constituent virtual links are not checked #fwd_links = self.nsd["forwarding_graphs"][0]["constituent_virtual_links"]