Skip to content

Commit

Permalink
Simplified the check for QoS definitions in the VNFD to not explicitl…
Browse files Browse the repository at this point in the history
…y and strictly check for maximum_bandwidth
  • Loading branch information
Lars Grebe committed Jan 28, 2019
1 parent 10e85e4 commit 6a4dc08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/org/openbaton/nse/openbaton/Subscriber.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 6a4dc08

Please sign in to comment.