X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fsonata%2Fdummygatekeeper.py;h=f20483b6e2a55ba762ae7f019334911f0eeb056f;hb=3e16acbebd2c6669c1bbe5a7e3bb313aa1494e20;hp=759ed419000544f59e762aee2673f43d1a8bf882;hpb=e0f920e099b91a07e7cb2f3bb3a940a71b493f08;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index 759ed41..f20483b 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -Neither the name of the SONATA-NFV [, ANY ADDITIONAL AFFILIATION] +Neither the name of the SONATA-NFV, Paderborn University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. @@ -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"]