From 0ffba2c8378917f18d75895a12bb3cd23bb7e033 Mon Sep 17 00:00:00 2001 From: Jing Zhang Date: Wed, 4 Oct 2023 11:47:53 -0700 Subject: [PATCH] [warmboot] config all interfaces back to `auto` if reconciliation times 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 zhangjing@microsoft.com --- src/MuxManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MuxManager.cpp b/src/MuxManager.cpp index 1d97eac9..a11ce8ac 100644 --- a/src/MuxManager.cpp +++ b/src/MuxManager.cpp @@ -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(); }