Skip to content

Commit

Permalink
Update vxlanmgrd.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RajeshPukhrajJain committed Mar 8, 2021
1 parent 20ee836 commit b4183c2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions cfgmgr/vxlanmgrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,6 @@ int main(int argc, char **argv)
vxlanmgr.waitTillReadyToReconcile();
vxlanmgr.restoreVxlanNetDevices();
WarmStart::setWarmStartState("vxlanmgrd", WarmStart::REPLAYED);
uint16_t wait_secs = 0;
string val = "";
Table wb_tbl = Table(&stateDb, STATE_WARM_RESTART_TABLE_NAME);
wb_tbl.hget("orchagent", "restore_count", val);
if ((val != "") or (val != "0"))
{
WarmStart::getWarmStartState("orchagent",state);
while (state != WarmStart::RECONCILED)
{
SWSS_LOG_NOTICE("Waiting Until Orchagent is reconciled. Current %s. Waited %u secs",
val.c_str(), wait_secs);
sleep(1);
wait_secs++;
WarmStart::getWarmStartState("orchagent",state);
}
}
}

SWSS_LOG_NOTICE("starting main loop");
Expand Down

0 comments on commit b4183c2

Please sign in to comment.