-
Notifications
You must be signed in to change notification settings - Fork 539
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
[orchagent] Adds swss support for drop counters #1075
Conversation
7ba0a4d
to
7cbe631
Compare
this->counter_id = debug_counter_id; | ||
} | ||
|
||
void DebugCounter::removeDebugCounterFromSAI() |
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.
How do handle warm reboot case?
Can the SWSS reset the counters? or reconcile the debug counters?
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.
I'll have to verify but yes, the counters should be reconciled upon warm reboot.
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.
Please also resolve conflicts and fix vs tests.
- Creates a new orchestrator for managing debug counters - Adds utility functions for managing flex counters - Adds utility functions for managing debug counters Signed-off-by: Danny Allen <daall@microsoft.com>
My comments are mostly cosmetic issues. Overall the change looks pretty good. Thanks for adding these comments in source code to tell tricky choices. These comments helps a lot. Add some comments to state the purpose of test steps would also help readers. I found that you used quite a bit 'this->' to specify scope in your code. This is not wrong per-se. Just curious why are you doing compiler's job? :-) |
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.
Looks good to me. Please also check others' comments
retest this please |
retest this please |
Aligned single back quotes in .md file
…t#1075) SAI_OBJECT_TYPE_TUNNEL has fewer attributes in 201811 than in 202012. These new attributes are CREATE only, and can't be added using just SET oper. Hence old object needs to be removed, and new object needs to be added. Moreover existing sequence (make before break) causes SAI errors in removing VXLAN tunnel (as part of CPA teardown). Adding SAI_OBJECT_TYPE_TUNNEL to break before make to avoid creating a new object before removing existing ones.
Adds swss support for drop counters
How I verified it
A set of vswitch tests is included.
Details if related
Depends on:
[flex_counter] Add sairedis support for drop counters sonic-sairedis#520[utilities] Create utility classes for interacting with flex counters #1093Signed-off-by: Danny Allen daall@microsoft.com