-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add v2r mapping for Fabric Counters in VoQ Chassis #341
Add v2r mapping for Fabric Counters in VoQ Chassis #341
Conversation
Signed-off-by: Suvarna Meenakshi <[email protected]>
to form unique port name within a linecard module Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
sonic_data_client/virtual_db.go
Outdated
var namespace_str = "" | ||
if len(namespace) != 0 { | ||
namespace_str = string('-') + namespace | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add some comment what are we doing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comments
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This reverts commit e90e6cd.
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Suvarna Meenakshi <[email protected]>
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Suvarna Meenakshi <[email protected]>
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fabric counters if invoked during unit testing Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
env Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
this is not for packet chassis right? |
yes, it is only for VoQ chassis, corrected the title to reflect the same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed with @SuvarnaMeenakshi, sonic-mgmt testcase will be added as follow-up
@SuvarnaMeenakshi , we'll need this for 202411 as well. Thanks. |
Cherry-pick PR to 202411: #365 |
Why I did it
To make the retrieval easy, changes are made in this PR to add v2r mapping for Fabric Counters in Packet Chassis similar to Ethernet interface counters. Reference [multi-asic] Added Support for multi-asic for telemetry/gnmi server sonic-telemetry#77
2 The Fabric counters Port name is unique within a given asic namespace and is not unique across a linecard. For example, there will be a port named PORT0 in asic0 and PORT0 in asic1 namespace as well. In order to make this unique across a multi-asic linecard, this PR appends asic namespace in the interface name. For example, PORT0 in asic0 will be called "PORT0-asic0".
How I did it
How to verify it
Verified on a multi-asic linecard:
Verified on single asic Linecard:
Verified on Pizza box to ensure no error log is seen.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)