Add SwitchConnectionProviderFactory 85/38585/2
authorTom Pantelis <tpanteli@brocade.com>
Thu, 5 May 2016 12:32:21 +0000 (08:32 -0400)
committerMichal Polkorab <michal.polkorab@pantheon.sk>
Mon, 30 May 2016 12:08:56 +0000 (12:08 +0000)
commit693ca12245dd55cad42ef3da61f409a5c678eb37
tree20e48075c6d27d554c0548a4618570c2a88d87fa
parente83ea90057e8e461591f4cd5f6197e5c1c407072
Add SwitchConnectionProviderFactory

Added a SwitchConnectionProviderFactory interface to the protocol SPI
bundle and a SwitchConnectionProviderFactoryImpl to the impl bundle to
create SwitchConnectionProvider instances given a SwitchConnectionConfig.
The SwitchConnectionProviderFactoryImpl is instantiated and advertised as an
OSGi service via blueprint. This allows clients to create new
SwitchConnectionProvider instances while hiding implementation details.
This is equivalent to creating instances via the config yang module.

The SwitchConnectionConfig and related classes are generated via a new
yang file that is equivalent to the config elements defined in the
openflow-switch-connection-provider-impl config yang. This new yang
model will be stored and retrieved via the data store.

Change-Id: I511c12644d5d54cd99c6b1afbf4c078a0cecee8e
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderFactoryImpl.java [new file with mode: 0644]
openflow-protocol-impl/src/main/resources/org/opendaylight/blueprint/openflow-protocol-impl.xml [new file with mode: 0644]
openflow-protocol-spi/pom.xml
openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProviderFactory.java [new file with mode: 0644]
openflow-protocol-spi/src/main/yang/openflow-switch-connection-config.yang [new file with mode: 0644]