Skip to content

[schema] Update schema to support debug counters#308

Merged
lguohan merged 5 commits intosonic-net:masterfrom
daall:debug_counters
Oct 11, 2019
Merged

[schema] Update schema to support debug counters#308
lguohan merged 5 commits intosonic-net:masterfrom
daall:debug_counters

Conversation

@daall
Copy link
Copy Markdown
Contributor

@daall daall commented Sep 19, 2019

[schema] Update schema to support debug counters

  • Add debug counter tables to CONFIG_DB schema
  • Add debug counters to FLEX_COUNTER_DB schema
  • Add name-to-stat mappings to COUNTERS_DB schema
  • Add debug counter capabilities table to STATE_DB schema

Signed-off-by: Danny Allen daall@microsoft.com

(depends on sonic-net/SONiC#434)

* Add debug counter tables to CONFIG_DB schema
* Add switch counters to FLEX_COUNTER_DB schema

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall daall requested review from lguohan and wendani September 19, 2019 23:57
@lguohan lguohan merged commit 91aceb1 into sonic-net:master Oct 11, 2019
Copy link
Copy Markdown

@dev-aviz dev-aviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schema looks good.

@daall daall deleted the debug_counters branch October 25, 2019 20:04
prgeor pushed a commit to prgeor/sonic-swss-common that referenced this pull request Feb 27, 2025
* [Cloudlight] QSFP-DD FW upgrade doesn't work (sonic-net#257)

- Description
cdb1_chkstatus will crash when i2c NACK or timeout.

- Motivation and Context
I2C of transceiver might NACK or stretching when FW upgrade, assuming "None" means "CdbIsBusy" until timeout.

* [Cloudlight] QSFP-DD FW upgrade doesn't work (sonic-net#257)

- Description
Waiting a delay in "run_fw_image" to ensure it is really executed.
Return a special package when get none in "get_module_fw_info".

- Motivation and Context
"run_fw_image" will be executed after a delay which according to run cmd, waiting the delay in "run_fw_image" to avoid aother cmd sent before it really executing.
CDB cmds will maybe cause several seconds NACK or stretching on i2c bus depend on implementation of module vendor, handling this situation for compatible with different implementation.

* [Cloudlight] QSFP-DD FW upgrade doesn't work (sonic-net#257)

- Description
Using real length to replace fixed number in "block_write_epl" function.

- Motivation and Context
To avoid a wrong epl length used in module.

* Update unit tests for cmis.

Test : Creating "get_module_fw_info" test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants