diff --git a/vslib/SwitchStateBase.cpp b/vslib/SwitchStateBase.cpp index 48155ca10..a58b13889 100644 --- a/vslib/SwitchStateBase.cpp +++ b/vslib/SwitchStateBase.cpp @@ -1336,6 +1336,11 @@ sai_status_t SwitchStateBase::create_ports() attr.value.u32 = SAI_PORT_HOST_TX_READY_STATUS_READY; CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + + attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE; + attr.value.booldata = true; + + CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); } return SAI_STATUS_SUCCESS; @@ -1806,6 +1811,11 @@ sai_status_t SwitchStateBase::create_port_dependencies( CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + attr.id = SAI_PORT_ATTR_AUTO_NEG_MODE; + attr.value.booldata = true; + + CHECK_STATUS(set(SAI_OBJECT_TYPE_PORT, port_id, &attr)); + // attributes are not required since they will be set outside this function CHECK_STATUS(create_ingress_priority_groups_per_port(port_id));