Skip to content

Commit

Permalink
[warmboot] config all interfaces back to auto if reconciliation tim…
Browse files Browse the repository at this point in the history
…es out (#220)

Description of PR
Summary:
Fixes # (issue)

This PR is to fix a warmboot bug that when linkmgrd reconciliation times out, some interfaces are left in manual mode.

sign-off: Jing Zhang [email protected]
  • Loading branch information
zjswhhh authored and yxieca committed Oct 11, 2023
1 parent fc6e299 commit abb22d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MuxManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ void MuxManager::handleWarmRestartReconciliationTimeout(const boost::system::err
MUXLOGWARNING("Reconciliation timed out after warm restart, set service to reconciled now.");
}

int rc = system("sudo config muxcable mode auto all");
MUXLOGWARNING(boost::format("config mux mode back to auto completed with return code %d") % rc);

mDbInterfacePtr->setWarmStartStateReconciled();
}

Expand Down

0 comments on commit abb22d2

Please sign in to comment.