Skip to content
Snippets Groups Projects
Commit 5ef00e5d authored by abat's avatar abat
Browse files

Merge into master from pull request #214:

Clear all links in storage when transitioning to HA Master role. (https://github.com/floodlight/floodlight/pull/214)
parents 8a0559a8 8766888a
No related branches found
No related tags found
No related merge requests found
...@@ -1550,6 +1550,7 @@ public class LinkDiscoveryManager ...@@ -1550,6 +1550,7 @@ public class LinkDiscoveryManager
switch(newRole) { switch(newRole) {
case MASTER: case MASTER:
if (oldRole == Role.SLAVE) { if (oldRole == Role.SLAVE) {
clearAllLinks();
log.debug("Sending LLDPs " + log.debug("Sending LLDPs " +
"to HA change from SLAVE->MASTER"); "to HA change from SLAVE->MASTER");
sendLLDPs(); sendLLDPs();
......
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