commit | f0699705acac1f34fc9115543160e1f39646e8ec | [log] [tgz] |
---|---|---|
author | Rimon Ashkenazy <rimon8963@gmail.com> | Sun Jan 17 19:28:49 2016 +0200 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Feb 19 20:20:29 2016 +0000 |
tree | dc8dd273dfaf3f3624112e284aa68245a13501ca | |
parent | 43f3ce62b96b7d593ae3422ed6d7d45a9783faf4 [diff] [blame] |
[ONOS-2476]: Circuit intent support for ODU Multiplexing Change-Id: I37229e7107e38baf8416102598f27004ef319665
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 0430f99..636de7d 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
@@ -108,6 +108,11 @@ log.debug("Compiling optical connectivity intent between {} and {}", src, dst); + // Release of intent resources here is only a temporary solution for handling the + // case of recompiling due to intent restoration (when intent state is FAILED). + // TODO: try to release intent resources in IntentManager. + resourceService.release(intent.id()); + // Reserve OCh ports Resource srcPortResource = Resources.discrete(src.deviceId(), src.port()).resource(); Resource dstPortResource = Resources.discrete(dst.deviceId(), dst.port()).resource();