mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 04:06:49 +02:00
[ONOS-7565] Flow rules error while rerouting intents with Flow Objectives
Change-Id: I785e2e82cabda23b07816e572ccfde4bed45a3f2
This commit is contained in:
parent
c2bf02a31c
commit
cdca195585
@ -837,11 +837,11 @@ public class ECFlowRuleStore
|
||||
}
|
||||
|
||||
public void add(FlowEntry rule) {
|
||||
StoredFlowEntry stored = getFlowEntriesInternal(rule.deviceId(), rule.id())
|
||||
.putIfAbsent((StoredFlowEntry) rule, (StoredFlowEntry) rule);
|
||||
if (stored == null) {
|
||||
lastUpdateTimes.put(rule.deviceId(), System.currentTimeMillis());
|
||||
}
|
||||
getFlowEntriesInternal(rule.deviceId(), rule.id())
|
||||
.compute((StoredFlowEntry) rule, (k, stored) -> {
|
||||
return (StoredFlowEntry) rule;
|
||||
});
|
||||
lastUpdateTimes.put(rule.deviceId(), System.currentTimeMillis());
|
||||
}
|
||||
|
||||
public void update(FlowEntry rule) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user