commit | 06cfba41f9567d7dce4b667266460563be95b8e7 | [log] [tgz] |
---|---|---|
author | Pier Ventre <pierventre@hotmail.com> | Tue Dec 13 13:23:02 2016 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Tue Jan 10 22:53:39 2017 -0800 |
tree | edc6ebdc905baadf57dff8afc94db921776790f0 | |
parent | 5aa638b646173e003528a69791d6e7e2433c5b40 [diff] |
Fixes [ONOS-5742] Changes: - Fixes the problem of "missing" installation contexts due synchronization problem on IntentInstaller; Change-Id: Ia8f9fa27f4d23ad390d73fe40739490836af178f
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentInstaller.java b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentInstaller.java index 631151b..49433af 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentInstaller.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentInstaller.java
@@ -433,11 +433,11 @@ @Override void apply() { - contexts.forEach(objectiveContext -> { - pendingContexts.add(objectiveContext); + pendingContexts.addAll(contexts); + contexts.forEach(objectiveContext -> flowObjectiveService.apply(objectiveContext.deviceId, - objectiveContext.objective); - }); + objectiveContext.objective) + ); } @Override