commit | 3c933ec287e907b6294cd74664d6a5710ca56d4f | [log] [tgz] |
---|---|---|
author | Youngbo Sim <yb.sim@samsung.com> | Tue Jul 17 11:32:47 2018 +0900 |
committer | Yi Tseng <a86487817@gmail.com> | Wed Jul 25 16:43:34 2018 +0000 |
tree | 67e92cc99eb8000fea40411029cb6b2c486ceb34 | |
parent | 1e8843f8e3c3085c33695dbc13b1e7bf5bec5cf3 [diff] |
bugfix: ONOS-7741 Change-Id: I0971ff4eac5517621071f20e87631740a32b1f7f
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/installer/FlowObjectiveIntentInstaller.java b/core/net/src/main/java/org/onosproject/net/intent/impl/installer/FlowObjectiveIntentInstaller.java index bc21235..84717e4 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/installer/FlowObjectiveIntentInstaller.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/installer/FlowObjectiveIntentInstaller.java
@@ -339,10 +339,14 @@ }); return; } - if (intentInstallationContext.errorContexts().isEmpty()) { + if (intentInstallationContext.errorContexts().isEmpty() && error == null) { intentInstallCoordinator.intentInstallSuccess(intentInstallationContext.intentOperationContext()); - } else { + } else if (!intentInstallationContext.errorContexts().isEmpty()) { intentInstallCoordinator.intentInstallFailed(intentInstallationContext.intentOperationContext()); + } else { + // waiting for error handling. + // if ctx.retryTimes() > OBJECTIVE_RETRY_THRESHOLD + // then handleObjectiveError will be executed. } } }