ForwardingRulesManager to expose async flow api
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / core / internal / Controller.java
index 8e6a30fceed5e0961e9c52660cfd77bb5c9ea71f..bfa6f0ba0ff341fafda217a03eb32614238efc2c 100644 (file)
@@ -228,8 +228,9 @@ public class Controller implements IController, CommandProvider {
                     instanceName);
             switchHandler.start();
             if (sc.isConnected()) {
-                logger.info("Switch:{} is connected to the Controller", sc
-                        .getRemoteAddress().toString().split("/")[1]);
+                logger.info("Switch:{} is connected to the Controller", 
+                        sc.socket().getRemoteSocketAddress()
+                        .toString().split("/")[1]);
             }
 
         } catch (IOException e) {