Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support data for fabric monitoring in CONFIG_DB. #14170

Merged

Conversation

jfeng-arista
Copy link
Contributor

Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}

Why I did it

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@kenneth-arista
Copy link
Contributor

@rlhui @arlakshm for viz

@rlhui
Copy link
Contributor

rlhui commented Mar 15, 2023

@sanmalho-git - please add reviewers as you see fit, thanks.

Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

add comments, Please add some unit tests for this.

@@ -1775,6 +1776,17 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
results['PORT'] = ports
results['CONSOLE_PORT'] = console_ports

# Get the global fabric monitoring data
curDir = os.getcwd()
Copy link
Contributor

Choose a reason for hiding this comment

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

is this needed, curDir is not used?

# alias to asic_port_name mapping
if 'asic_port_name' in data:
port_alias_asic_map[data['alias']] = data['asic_port_name'].strip()
return (ports, port_alias_map, port_alias_asic_map)
Copy link
Contributor

Choose a reason for hiding this comment

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

port_alias_map, port_alias_asic_map is not used, is this needed?

@jfeng-arista
Copy link
Contributor Author

/Azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm added the Chassis for 202205 branch PRs needed for 202205 branch in msft repo label May 15, 2023
qiluo-msft pushed a commit that referenced this pull request May 15, 2023
#### Why I did it
Table FABRIC_MONITOR|FABRIC_MONITOR_DATA in CONFIG_DB was added in #14170 
The YANG model for that table is still missing. 

Need to wait #14170 get merged first.

#### How I did it
Added new YANG model FABRIC_MONITOR and associated unit tests.

#### How to verify it
Passing unit tests
@kenneth-arista
Copy link
Contributor

@arlakshm looks like @jfeng-arista addressed all comments. Can we get this merged before the 202305 cut-off?

Copy link
Contributor

@arlakshm arlakshm left a comment

Choose a reason for hiding this comment

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

LGTM

@yxieca yxieca merged commit 4b31e30 into sonic-net:master Jun 16, 2023
qiluo-msft pushed a commit that referenced this pull request Jul 3, 2023
#### Why I did it

Introduce YANG model for FABRIC in CONFIG_DB, which was added in #14170.

#### How I did it

This is a clone of @jfeng-arista's PR #14282 to resolve conflicts with upstream changes. 

#### How to verify it

Passing pipeline build is sufficient.
@gechiang gechiang added the Included in Chassis for 202205 Branch Indicate PR is already in MSFT repo 202205 branch label Jul 13, 2023
@StormLiangMS
Copy link
Contributor

StormLiangMS commented Jul 17, 2023

@gechiang if this is a bug fix and we needed in 202305, pls have ADO to track, each commit to 202305 need ADO.

@gechiang
Copy link
Collaborator

@StormLiangMS
MSFT ADO: 24595606

Thanks!

mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Aug 6, 2023
Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #16045

StormLiangMS pushed a commit that referenced this pull request Aug 7, 2023
Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}

Co-authored-by: jfeng-arista <98421150+jfeng-arista@users.noreply.github.com>
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Sep 3, 2023
#### Why I did it

Introduce YANG model for FABRIC in CONFIG_DB, which was added in sonic-net#14170.

#### How I did it

This is a clone of @jfeng-arista's PR sonic-net#14282 to resolve conflicts with upstream changes. 

#### How to verify it

Passing pipeline build is sufficient.
mssonicbld pushed a commit that referenced this pull request Sep 3, 2023
#### Why I did it

Introduce YANG model for FABRIC in CONFIG_DB, which was added in #14170.

#### How I did it

This is a clone of @jfeng-arista's PR #14282 to resolve conflicts with upstream changes. 

#### How to verify it

Passing pipeline build is sufficient.
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
#### Why I did it

Introduce YANG model for FABRIC in CONFIG_DB, which was added in sonic-net#14170.

#### How I did it

This is a clone of @jfeng-arista's PR sonic-net#14282 to resolve conflicts with upstream changes. 

#### How to verify it

Passing pipeline build is sufficient.
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
Add support data for fabric monitoring in CONFIG_DB. (sonic-net#14170)
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

8 participants