commit | ce7db1b65f15c598becc773a5eb19a1a5319ccd5 | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@onlab.us> | Tue May 24 13:33:48 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue May 24 21:01:11 2016 +0000 |
tree | 5b764a4f9a635ed89105328af2b7ff428c35206d | |
parent | 2205624deb9d1fa8991027db134edc36b5f1c9ef [diff] |
Fix for ONOS-4568 - Intents stuck in INSTALLING state The default pipeline driver was not calling the success callback for next objectives. This caused the intent installer to think there were still flows in need of installation, and the intent never completed. Change-Id: Ib411c317b28475cfc1e966e31f859cebbeea3792
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java index 8ac24d4..eca9014 100644 --- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java +++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/DefaultSingleTablePipeline.java
@@ -217,6 +217,7 @@ pendingNext.put(nextObjective.id(), nextObjective); flowObjectiveStore.putNextGroup(nextObjective.id(), new SingleGroup(new DefaultGroupKey(appKryo.serialize(nextObjective.id())))); + nextObjective.context().ifPresent(context -> context.onSuccess(nextObjective)); } @Override