Skip to content
Snippets Groups Projects
Commit ca932b39 authored by Valentin Mayamsin's avatar Valentin Mayamsin
Browse files

Fixed duplicate static flow cache population

parent 7106b844
No related branches found
No related tags found
No related merge requests found
......@@ -643,13 +643,6 @@ public class StaticFlowEntryPusher
@Override
public void addFlow(String name, OFFlowMod fm, String swDpid) {
Map<String, Object> fmMap = StaticFlowEntries.flowModToStorageEntry(fm, swDpid, name);
entry2dpid.put(name, swDpid);
Map<String, OFFlowMod> switchEntries = entriesFromStorage.get(swDpid);
if (switchEntries == null) {
switchEntries = new HashMap<String, OFFlowMod>();
entriesFromStorage.put(swDpid, switchEntries);
}
switchEntries.put(name, fm);
storageSource.insertRowAsync(TABLE_NAME, fmMap);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment