Skip to content
Snippets Groups Projects
Commit 5129beb5 authored by abat's avatar abat
Browse files

Merge into master from pull request #231:

Do not send HA role change updates if old and new roles are the same. (https://github.com/floodlight/floodlight/pull/231)
parents 7928f0c9 c8306ad0
No related branches found
No related tags found
No related merge requests found
......@@ -275,6 +275,15 @@ public class Controller implements IFloodlightProviderService,
this.newRole = newRole;
}
public void dispatch() {
// Make sure that old and new roles are different.
if (oldRole == newRole) {
if (log.isTraceEnabled()) {
log.trace("HA role update ignored as the old and " +
"new roles are the same. newRole = {}" +
"oldRole = {}", newRole, oldRole);
}
return;
}
if (log.isTraceEnabled()) {
log.trace("Dispatching HA Role update newRole = {}, oldRole = {}",
newRole, oldRole);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment