From 6a4dc08ec699cdb0ea6f51cb586ac62ab5890252 Mon Sep 17 00:00:00 2001 From: Lars Grebe Date: Mon, 28 Jan 2019 15:00:09 +0100 Subject: [PATCH] Simplified the check for QoS definitions in the VNFD to not explicitly and strictly check for maximum_bandwidth --- src/main/java/org/openbaton/nse/openbaton/Subscriber.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openbaton/nse/openbaton/Subscriber.java b/src/main/java/org/openbaton/nse/openbaton/Subscriber.java index fe58ee3..8713c11 100755 --- a/src/main/java/org/openbaton/nse/openbaton/Subscriber.java +++ b/src/main/java/org/openbaton/nse/openbaton/Subscriber.java @@ -167,7 +167,8 @@ public void receiveConfiguration(String message) { if (!vlr.getQos().isEmpty()) { for (String qosAttr : vlr.getQos()) { //logger.debug(" found : " + qosAttr); - if (qosAttr.contains("maximum_bandwidth")) { + //if (qosAttr.contains("maximum_bandwidth")) { + if (qosAttr.contains("bandwidth")) { //logger.debug(nsr.getVnfr().toString()); core.addQos(nsr.getVnfr(), nsr.getId()); } @@ -259,7 +260,8 @@ public void scaleConfiguration(String message) { for (InternalVirtualLink vlr : vnfr.getVirtual_link()) { if (!vlr.getQos().isEmpty()) { for (String qosAttr : vlr.getQos()) { - if (qosAttr.contains("maximum_bandwidth")) { + //if (qosAttr.contains("maximum_bandwidth")) { + if (qosAttr.contains("bandwidth")) { core.addQos(new HashSet<>(Arrays.asList(vnfr)), vnfr.getParent_ns_id()); } }