commit | f6ea9e624bf03d090f280bab848ec7cd66f7105a | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Tue Apr 21 17:08:26 2015 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Tue Apr 21 17:08:26 2015 -0700 |
tree | 39c4f1a319903c54b3bc2818083f7f6aa1fc24ea | |
parent | 08d9898714452f71980987137c6043530edc2dd3 [diff] [blame] |
Implemented a globally unique next id generator in FlowObjectStore Change-Id: Ib98b2996e1ebcca56ad816ea94f25d838c5f4d44
diff --git a/core/net/src/main/java/org/onosproject/net/flowobjective/impl/FlowObjectiveManager.java b/core/net/src/main/java/org/onosproject/net/flowobjective/impl/FlowObjectiveManager.java index 17b0aa7..6b84bfa 100644 --- a/core/net/src/main/java/org/onosproject/net/flowobjective/impl/FlowObjectiveManager.java +++ b/core/net/src/main/java/org/onosproject/net/flowobjective/impl/FlowObjectiveManager.java
@@ -170,6 +170,11 @@ } } + @Override + public int allocateNextId() { + return flowObjectiveStore.allocateNextId(); + } + private boolean queueObjective(DeviceId deviceId, ForwardingObjective fwd) { if (fwd.nextId() != null && flowObjectiveStore.getNextGroup(fwd.nextId()) == null) {