Properly check for FlowRef before touching caches 86/94586/6
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 10 Jan 2021 12:26:34 +0000 (13:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 10 Jan 2021 19:08:04 +0000 (20:08 +0100)
commita71989ae6ba2786093b84cdef79d902ce009ac15
treeb210d4a6914841561b673e22defb08e221c485df
parent25da41f43af30de49029bd1a8d5650c77190ba26
Properly check for FlowRef before touching caches

FlowRef is not necessarily present, hence we need to properly
isolate code that requires it.

This ends up being a larger-scale refactor, as there was a ton
of duplicate code. At the end of the day, this debugging facility's
footprint is reasonably reduced.

JIRA: OPNFLWPLUG-1106
Change-Id: I402cc302ab09e22bda7f731f7da4431f576c8bbb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
applications/southbound-cli/src/main/java/org/opendaylight/openflowplugin/applications/southboundcli/cli/GetFlowGroupCacheProvider.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/FlowGroupCache.java [deleted file]
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/FlowGroupCacheManager.java
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/FlowGroupInfo.java [new file with mode: 0644]
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/cache/FlowGroupCacheManagerImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/SalFlowServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/sal/SalGroupServiceImpl.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/services/sal/SalFlowServiceImplTest.java