Add get configuration function to be able to access the openflow connection config...
[openflowjava.git] / openflow-protocol-spi / src / main / java / org / opendaylight / openflowjava / protocol / spi / connection / SwitchConnectionProvider.java
index c6910b145efc1f5d9f82ffa48f984bd92ea843fa..b013471f3b7388d75bd8099a5eba357ecb333ece 100644 (file)
@@ -29,6 +29,12 @@ public interface SwitchConnectionProvider extends AutoCloseable,
      */
     void setConfiguration(ConnectionConfiguration configuration);
 
+    /**
+     * return the connection configuration
+     * @return configuration [protocol, port, address and supported features]
+     */
+    ConnectionConfiguration getConfiguration();
+
     /**
      * start listening to switches, but please don't forget to do
      * {@link #setSwitchConnectionHandler(SwitchConnectionHandler)} first