[orchagent] Adds swss support for drop counters#1075
[orchagent] Adds swss support for drop counters#1075yxieca merged 30 commits intosonic-net:masterfrom
Conversation
7ba0a4d to
7cbe631
Compare
| this->counter_id = debug_counter_id; | ||
| } | ||
|
|
||
| void DebugCounter::removeDebugCounterFromSAI() |
There was a problem hiding this comment.
How do handle warm reboot case?
Can the SWSS reset the counters? or reconcile the debug counters?
There was a problem hiding this comment.
I'll have to verify but yes, the counters should be reconciled upon warm reboot.
qiluo-msft
left a comment
There was a problem hiding this comment.
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 <[email protected]>
|
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? :-) |
qiluo-msft
left a comment
There was a problem hiding this comment.
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.
* [orchagent] Adds swss support for drop counters - 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 <[email protected]> * Fix build issues * Fix log levels * Cast drop reasons before serializing * Fix testing issues * Clean up flex counter utilities * Expose switch ids in redis * Clean-up comments and namespace usage * Add basic drop counter vswitch tests * Add drop reasons * Fix rebase merge conflicts * Move flex counter and switch related work to different PRs * Fix first round of feedback comments * Fix free counters review comments * Reorganize helper classes * Delete extra makefile * Only put useful capabilities in STATE DB * Use new flex counter manager naming * Update mock tests to build with debug counter orch * Add remaining ingress drop reasons * Fix reference style issue * Update tests to match virtual switch implementation * Respond to C++ style issues * Improve documentation for vs tests * Add test case for removing all drop reasons from a counter * Specify exception type being caught * Add range check for drop counter indices * Undo range check
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 [email protected]