Skip to content

Commit

Permalink
[ppi] Relax port attributes validation (#2872)
Browse files Browse the repository at this point in the history
HLD: sonic-net/SONiC#1084

- What I did
Relaxed port attributes validation: decreased message severity

- Why I did it
To resolve LogAnalyzer failures during DPB test

- How I verified it
Run DPB test

Signed-off-by: Nazarii Hnydyn <[email protected]>
  • Loading branch information
nazariig authored Aug 21, 2023
1 parent b4fcfc9 commit f129499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/port/porthlpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,13 +919,13 @@ bool PortHelper::validatePortConfig(PortConfig &port) const

if (!port.lanes.is_set)
{
SWSS_LOG_ERROR("Validation error: missing mandatory field(%s)", PORT_LANES);
SWSS_LOG_WARN("Validation error: missing mandatory field(%s)", PORT_LANES);
return false;
}

if (!port.speed.is_set)
{
SWSS_LOG_ERROR("Validation error: missing mandatory field(%s)", PORT_SPEED);
SWSS_LOG_WARN("Validation error: missing mandatory field(%s)", PORT_SPEED);
return false;
}

Expand Down

0 comments on commit f129499

Please sign in to comment.