commit | 2c433ce4d864115121e8446223bebdfdeea0313c | [log] [tgz] |
---|---|---|
author | Pier Ventre <pierventre@hotmail.com> | Tue Dec 13 13:23:02 2016 -0800 |
committer | Pier Luigi <pierventre@hotmail.com> | Tue Jan 10 17:43:46 2017 -0800 |
tree | 2893e0d029775b7c4bd3d22ba59b6780d8921a39 | |
parent | c590ebbc123177c37f8231b754e281a50e3a1aec [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