Skip to content

Commit

Permalink
Support gearbox SAI_PORT_ATTR_PORT_SERDES_ID on vs (sonic-net#1082)
Browse files Browse the repository at this point in the history
This change is to support SAI_PORT_ATTR_PORT_SERDES_ID on the SAI for vs gearbox
  • Loading branch information
byu343 authored Oct 10, 2022
1 parent 2d6975d commit 4307506
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vslib/SwitchBCM81724.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ sai_status_t SwitchBCM81724::create_port_dependencies(

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

attr.id = SAI_PORT_ATTR_PORT_SERDES_ID;
attr.value.oid = SAI_NULL_OBJECT_ID;

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

return SAI_STATUS_SUCCESS;
}

Expand Down Expand Up @@ -273,6 +278,7 @@ sai_status_t SwitchBCM81724::refresh_read_only(
*/

case SAI_PORT_ATTR_OPER_STATUS:
case SAI_PORT_ATTR_PORT_SERDES_ID:
return SAI_STATUS_SUCCESS;

case SAI_PORT_ATTR_OPER_SPEED:
Expand Down

0 comments on commit 4307506

Please sign in to comment.