Skip to content

Commit 947998b

Browse files
stepanblyschakyxieca
authored andcommitted
[intfmgrd] Fix intfmgrd hanging untill first interface becomes ready (sonic-net#748)
intfmgrd can hang on first interface it tries to configure untill this interface becomes "ready". This delays other interfaces configuration to be processed. This commit fixes this issue by skiping "not ready" interface and proceed with others. Skipped interface can be processed on next iterations. Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 25619f5 commit 947998b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cfgmgr/intfmgr.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,15 @@ void IntfMgr::doTask(Consumer &consumer)
246246
{
247247
if (!doIntfGeneralTask(keys, data, op))
248248
{
249+
it++;
249250
continue;
250251
}
251252
}
252253
else if (keys.size() == 2)
253254
{
254255
if (!doIntfAddrTask(keys, data, op))
255256
{
257+
it++;
256258
continue;
257259
}
258260
}

0 commit comments

Comments
 (0)