Rewire SwitchConnectionProvider configuration 71/111771/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 May 2024 19:19:25 +0000 (21:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 21 May 2024 13:31:50 +0000 (15:31 +0200)
commit48e7ad49a1b7daf3e63785df642dd348abb00df4
treef31e1d64848dd08e984ea60e9dee3d3a34353606
parent546d2650d3d89d94955110f74dfd1a39c697eff6
Rewire SwitchConnectionProvider configuration

Eliminate use of blueprint by replacing it with two components:

OSGiFactorySwitchConnectionConfiguration populates default configuration
into the datastore if not already present.

OSGiSwitchConnectionProviders listens on datastore configuration and
instantiates SwitchConnectionProviders based on observed configuration.

JIRA: OPNFLWPLUG-1129
Change-Id: I7d762b7b07f010d37ba0590515dd30cbcfe3b479
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 5b685a5be740d0bda47b4d08203e099c75105ccf)
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/ConnectionConfigurationImpl.java [new file with mode: 0644]
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderFactoryImpl.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderImpl.java
openflowjava/openflowjava-blueprint-config/pom.xml
openflowjava/openflowjava-blueprint-config/src/main/java/org/opendaylight/openflowjava/mdsal/OSGiFactorySwitchConnectionConfiguration.java [new file with mode: 0644]
openflowjava/openflowjava-blueprint-config/src/main/java/org/opendaylight/openflowjava/mdsal/OSGiSwitchConnectionProviders.java [new file with mode: 0644]
openflowjava/openflowjava-blueprint-config/src/main/resources/OSGI-INF/blueprint/openflowjava.xml [deleted file]