commit | 2b49e944eabe2211e7ee8ccfecf3f84517374cfe | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Nov 25 18:34:10 2015 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Nov 26 02:54:51 2015 +0000 |
tree | 721d2892b644093306b50af6784517753220c192 | |
parent | 9e1e9deec96db12b0635c8a5bb703b8f67dfff78 [diff] |
Ensure returning null on allocation failure Change-Id: Ifdc5354b8b00ec4f87ed20a1b877abfe576c31ac
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java index a4ed551..2941ddb 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
@@ -189,6 +189,7 @@ List<ResourceAllocation> allocations = resourceService.allocate(intent.id(), lambdaResources); if (allocations.isEmpty()) { log.info("Resource allocation for {} failed (resource request: {})", intent, lambdaResources); + return null; } return minLambda;