Skip to content

Commit b4b0003

Browse files
authored
Handling Invalid CRM configuration gracefully (sonic-net#2109)
*When CRM table contains some invalid configurations, the existing logic parses all field values above it and doesn't parse the field values below it. On hitting the unknown field, crm orch returns the execution leaving the crm database inconsistent. To handle this gracefully CRM orch will just log the unknown field and continue processing the fields below the unknown field. Signed-off-by: Sudharsan Dhamal Gopalarathnam <[email protected]>
1 parent d240cb2 commit b4b0003

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

orchagent/crmorch.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ void CrmOrch::handleSetCommand(const string& key, const vector<FieldValueTuple>&
325325
else
326326
{
327327
SWSS_LOG_ERROR("Failed to parse CRM %s configuration. Unknown attribute %s.\n", key.c_str(), field.c_str());
328-
return;
329328
}
330329
}
331330
catch (const exception& e)

0 commit comments

Comments
 (0)