Skip to content

Commit

Permalink
Do not create fabric port if mapping is not available (#769)
Browse files Browse the repository at this point in the history
Fix vstest lib for sonic-net/sonic-swss#1431.

Signed-off-by: ngocdo <ngocdo@arista.com>
  • Loading branch information
ngoc-do committed Jan 16, 2021
1 parent cc560f5 commit d205a11
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vslib/src/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2666,9 +2666,12 @@ sai_status_t SwitchStateBase::initialize_voq_switch_objects(

CHECK_STATUS(set_system_port_list());

CHECK_STATUS(create_fabric_ports());
if (m_switchConfig->m_fabricLaneMap)
{
CHECK_STATUS(create_fabric_ports());

CHECK_STATUS(set_fabric_port_list());
CHECK_STATUS(set_fabric_port_list());
}

return SAI_STATUS_SUCCESS;
}
Expand Down

0 comments on commit d205a11

Please sign in to comment.