Details
-
Bug
-
Status: Resolved
-
Resolution: Won't Do
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
5935
Description
DeviceFlowRegistry needs to be rebuild after FAILOVER.
Refactor 1/ Recreate DeviceFlowRegistry after failover (it should not be empty)
Refactor 2/ It is not enough to identify flow by FlowRegistryKey(tableId,priority,cookie). The match is mising. Try to lookup by (tableId,priority,cookie,match)
Refactor 3/ retrieveIdForFlow: If entry is missing there should lookup Inventory DS
Refactor 4/ Extract specific code for handling writing to operation DS only when stats are disabled.
- DeviceContext.processFlowRemovedMessage()
- org.opendaylight.openflowplugin.impl.device.DeviceContextImpl.processFlowRemovedMessage(FlowRemoved)
- org.opendaylight.openflowplugin.impl.statistics.StatisticsGatheringUtils
- SalFlowServiceImpl deviceFlowRegistry.markToBeRemoved()
Refactor 5/ Nullobject implementaiton for specific code for handling writing to operation DS only when stats are enabled