Skip to content
Snippets Groups Projects
Commit a0859300 authored by Kanzhe Jiang's avatar Kanzhe Jiang
Browse files

Consolidate queryHandler function. [#28391421]

parent 7a567d64
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,21 @@ public class FlowReconcileManager
// NO-OP
}
@Override
public void flowQueryGenericHandler(FlowCacheQueryResp flowResp) {
if (flowResp.queryObj.evType != FCQueryEvType.GET) {
OFMatchReconcile ofmRc = newOFMatchReconcile();
/* Re-provision these flows */
for (QRFlowCacheObj entry : flowResp.qrFlowCacheObjList) {
/* reconcile the flows in entry */
entry.toOFMatchReconcile(ofmRc, flowResp.queryObj.applInstName,
OFMatchReconcile.ReconcileAction.UPDATE_PATH);
reconcileFlow(ofmRc);
}
}
return;
}
// IFloodlightModule
@Override
......
......@@ -61,4 +61,9 @@ public interface IFlowReconcileService extends IFloodlightService {
*/
public void updateFlowForSourceDevice(IDevice device, FCQueryEvType fcEvType);
/**
* Generic flow query handler to insert FlowMods into the reconcile pipeline.
* @param flowResp
*/
public void flowQueryGenericHandler(FlowCacheQueryResp flowResp);
}
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