Add get configuration function to be able to access the openflow connection config... 00/31300/1
authorMohamed El-Serngawy <melserngawy@inocybe.com>
Mon, 14 Dec 2015 20:41:25 +0000 (15:41 -0500)
committerMohamed El-Serngawy <melserngawy@inocybe.com>
Mon, 14 Dec 2015 20:44:14 +0000 (15:44 -0500)
Change-Id: I2f0b12f1649771226d032ff2644230895e10191b
Signed-off-by: Mohamed El-Serngawy <melserngawy@inocybe.com>
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderImpl.java
openflow-protocol-spi/src/main/java/org/opendaylight/openflowjava/protocol/spi/connection/SwitchConnectionProvider.java

index f5a39eabda64408b2d339d56b62614896944a259..aa79e6a361b48384fda80819dcf4fb402a376879 100644 (file)
@@ -277,4 +277,9 @@ public class SwitchConnectionProviderImpl implements SwitchConnectionProvider, C
         connectionInitializer.initiateConnection(host, port);
     }
 
+    @Override
+    public ConnectionConfiguration getConfiguration() {
+        return this.connConfig;
+    }
+
 }
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