|
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
|