Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions orchagent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ void syncd_apply_view()
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to notify syncd APPLY_VIEW %d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_SWITCH, "set", status);
return;
}
}

Expand Down Expand Up @@ -701,7 +702,8 @@ int main(int argc, char **argv)
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to create a switch, rv:%d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_SWITCH, "create", status);
return EXIT_FAILURE;
}
SWSS_LOG_NOTICE("Create a switch, id:%" PRIu64, gSwitchId);

Expand Down Expand Up @@ -732,7 +734,8 @@ int main(int argc, char **argv)
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to get MAC address from switch, rv:%d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_SWITCH, "get", status);
return EXIT_FAILURE;
}
else
{
Expand All @@ -747,7 +750,8 @@ int main(int argc, char **argv)
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Fail to get switch virtual router ID %d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_SWITCH, "get", status);
return EXIT_FAILURE;
}

gVirtualRouterId = attr.value.oid;
Expand Down Expand Up @@ -789,7 +793,8 @@ int main(int argc, char **argv)
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to create underlay router interface %d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_ROUTER_INTERFACE, "create", status);
return EXIT_FAILURE;
}

SWSS_LOG_NOTICE("Created underlay router interface ID %" PRIx64, gUnderlayIfId);
Expand Down
2 changes: 1 addition & 1 deletion orchagent/orchdaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ void OrchDaemon::flush()
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to flush redis pipeline %d", status);
handleSaiFailure(true);
handleSaiFailure(SAI_API_SWITCH, "set", status);
}

for (auto* orch: m_orchList)
Expand Down
Loading
Loading