Skip to content
Snippets Groups Projects
Commit 8766888a authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Delete all links from storage when transitioning to master role.

parent c813d418
No related branches found
No related tags found
No related merge requests found
......@@ -1550,6 +1550,7 @@ public class LinkDiscoveryManager
switch(newRole) {
case MASTER:
if (oldRole == Role.SLAVE) {
clearAllLinks();
log.debug("Sending LLDPs " +
"to HA change from SLAVE->MASTER");
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