Skip to content

Commit 4307506

Browse files
authored
Support gearbox SAI_PORT_ATTR_PORT_SERDES_ID on vs (sonic-net#1082)
This change is to support SAI_PORT_ATTR_PORT_SERDES_ID on the SAI for vs gearbox
1 parent 2d6975d commit 4307506

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vslib/SwitchBCM81724.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ sai_status_t SwitchBCM81724::create_port_dependencies(
5858

5959
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
6060

61+
attr.id = SAI_PORT_ATTR_PORT_SERDES_ID;
62+
attr.value.oid = SAI_NULL_OBJECT_ID;
63+
64+
CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr));
65+
6166
return SAI_STATUS_SUCCESS;
6267
}
6368

@@ -273,6 +278,7 @@ sai_status_t SwitchBCM81724::refresh_read_only(
273278
*/
274279

275280
case SAI_PORT_ATTR_OPER_STATUS:
281+
case SAI_PORT_ATTR_PORT_SERDES_ID:
276282
return SAI_STATUS_SUCCESS;
277283

278284
case SAI_PORT_ATTR_OPER_SPEED:

0 commit comments

Comments
 (0)