commit | 6d8e317182cca177a238f1474ccf00ac76a80cfd | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Apr 30 15:43:57 2015 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Fri May 01 12:48:15 2015 -0700 |
tree | 58d24140ec342ddd85107b8af6e8da263941f03c | |
parent | a6c9b5cff25d3348f30601ee9c6d17120cba2362 [diff] [blame] |
Added error count for IntentData (ONOS-1060) Change-Id: Ida6313603c15fb6c1c1793c298206587b370a13e
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/WithdrawRequest.java b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/WithdrawRequest.java index 73a6510..8a0709e 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/phase/WithdrawRequest.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/phase/WithdrawRequest.java
@@ -21,6 +21,7 @@ import java.util.Optional; import static com.google.common.base.Preconditions.checkNotNull; +import static org.onosproject.net.intent.impl.phase.IntentProcessPhase.transferErrorCount; /** * Represents a phase of requesting a withdraw of an intent. @@ -51,6 +52,8 @@ // same version i.e. they are the same // Note: this call is not just the symmetric version of submit + transferErrorCount(data, stored); + if (!stored.isPresent() || stored.get().installables().isEmpty()) { switch (data.request()) { case INSTALL_REQ: