Added more debug statements to role handling code to debug switch join issues
diff --git a/src/main/java/net/floodlightcontroller/core/internal/RoleChanger.java b/src/main/java/net/floodlightcontroller/core/internal/RoleChanger.java
index 6378136..2d1e3e8 100644
--- a/src/main/java/net/floodlightcontroller/core/internal/RoleChanger.java
+++ b/src/main/java/net/floodlightcontroller/core/internal/RoleChanger.java
@@ -275,8 +275,11 @@
sw.getAttribute(IOFSwitch.SWITCH_SUPPORTS_NX_ROLE);
if ((supportsNxRole == null) || supportsNxRole) {
// Handle cases #1 and #2
+ log.debug("Sending NxRoleRequest to {}", sw);
sw.sendNxRoleRequest(role, cookie);
} else {
+ log.debug("Switch {} doesn't support NxRoleRequests so we can't send " +
+ "a {} request - doing nothing", sw, role);
// Handle case #3
if (role == Role.SLAVE) {
log.debug("Disconnecting switch {} that doesn't support " +