[hft]: Fix TAM type capability enable list#4075
Conversation
Signed-off-by: Ze Gan <ganze718@gmail.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw run |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Pull request overview
This PR fixes the TAM (Telemetry and Monitoring) type capability enable list implementation to make it object-type specific rather than enabling all capabilities unconditionally. Previously, all telemetry capabilities (PORT_STATS, MMU_STATS, and OUTPUT_QUEUE_STATS) were enabled regardless of the object type being monitored, which was ambiguous. The new implementation conditionally enables only the relevant capabilities based on the SAI object type (PORT, BUFFER_POOL, INGRESS_PRIORITY_GROUP, or QUEUE).
Key changes:
- Refactored C++ code to use conditional logic that enables capabilities based on object type
- Updated test to verify at least one capability is enabled rather than requiring all capabilities
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| orchagent/high_frequency_telemetry/hftelprofile.cpp | Replaced unconditional capability enablement with conditional logic based on SAI object type (PORT, BUFFER_POOL, INGRESS_PRIORITY_GROUP, QUEUE), adding error handling for unsupported types |
| tests/test_hft.py | Added flexible validation to check that at least one TAM capability is enabled, accommodating the new object-type-specific capability enablement |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
fd24ea9 to
bd453f6
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
bd453f6 to
7d3b645
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Ze Gan <ganze718@gmail.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
c9429d4 to
a7601ae
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
r12f
left a comment
There was a problem hiding this comment.
the type mapping looks reasonable. approved.
@DavidZagury and @dgsudharsan for viz.
This PR fixes the TAM (Telemetry and Monitoring) type capability enable list implementation to make it object-type specific rather than enabling all capabilities unconditionally. Previously, all telemetry capabilities (PORT_STATS, MMU_STATS, and OUTPUT_QUEUE_STATS) were enabled regardless of the object type being monitored, which was ambiguous. The new implementation conditionally enables only the relevant capabilities based on the SAI object type (PORT, BUFFER_POOL, INGRESS_PRIORITY_GROUP, or QUEUE). Key changes: Refactored C++ code to use conditional logic that enables capabilities based on object type Updated test to verify at least one capability is enabled rather than requiring all capabilities
|
Cherry-pick PR to msft-202412: Azure/sonic-swss.msft#198 |
This PR fixes the TAM (Telemetry and Monitoring) type capability enable list implementation to make it object-type specific rather than enabling all capabilities unconditionally. Previously, all telemetry capabilities (PORT_STATS, MMU_STATS, and OUTPUT_QUEUE_STATS) were enabled regardless of the object type being monitored, which was ambiguous. The new implementation conditionally enables only the relevant capabilities based on the SAI object type (PORT, BUFFER_POOL, INGRESS_PRIORITY_GROUP, or QUEUE). Key changes: Refactored C++ code to use conditional logic that enables capabilities based on object type Updated test to verify at least one capability is enabled rather than requiring all capabilities Signed-off-by: ganglyu <glv@nvidia.com>
|
Cherry-pick PR to 202511: #4215 |
This PR fixes the TAM (Telemetry and Monitoring) type capability enable list implementation to make it object-type specific rather than enabling all capabilities unconditionally. Previously, all telemetry capabilities (PORT_STATS, MMU_STATS, and OUTPUT_QUEUE_STATS) were enabled regardless of the object type being monitored, which was ambiguous. The new implementation conditionally enables only the relevant capabilities based on the SAI object type (PORT, BUFFER_POOL, INGRESS_PRIORITY_GROUP, or QUEUE). Key changes: Refactored C++ code to use conditional logic that enables capabilities based on object type Updated test to verify at least one capability is enabled rather than requiring all capabilities Signed-off-by: Baorong Liu <96146196+baorliu@users.noreply.github.com>
What I did
Enable TAM type capability based on its type
Why I did it
The previous implementation was ambiguous
How I verified it
Check Azp
Details if related