Skip to content

Commit cb41a91

Browse files
committed
Create fabric ports for switch_type fabric.
1 parent ffc4109 commit cb41a91

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vslib/SwitchStateBase.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -3001,6 +3001,15 @@ sai_status_t SwitchStateBase::initialize_voq_switch_objects(
30013001
if (attr_list[i].value.u32 != SAI_SWITCH_TYPE_VOQ)
30023002
{
30033003
// Switch is not being set as VOQ type.
3004+
SWSS_LOG_NOTICE("initialize_voq_switch_objects the value is %d", attr_list[i].value.u32);
3005+
if (attr_list[i].value.u32 == SAI_SWITCH_TYPE_FABRIC) {
3006+
SWSS_LOG_NOTICE("about to config fabric ports");
3007+
if (m_switchConfig->m_fabricLaneMap)
3008+
{
3009+
CHECK_STATUS(create_fabric_ports());
3010+
CHECK_STATUS(set_fabric_port_list());
3011+
}
3012+
}
30043013
return SAI_STATUS_SUCCESS;
30053014
}
30063015
else

0 commit comments

Comments
 (0)