Skip to content
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

Rename the leaf nodes to lower case. #18704

Merged
merged 8 commits into from
Apr 26, 2024

Conversation

xincunli-sonic
Copy link
Contributor

Why I did it

Consolidate the numvoq, coreid, coreportid to be lower case which matches other leaf node convention.

Work item tracking
  • Microsoft ADO (number only): 27599961

How I did it

Rename to lower case.

How to verify it

No need to verify.

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

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

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

arlakshm
arlakshm previously approved these changes Apr 22, 2024
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

@arlakshm
Copy link
Contributor

arlakshm commented Apr 22, 2024

This PR is making the column names in portconfig.ini consistent with yang models
add @saksarav-nokia, @mlok-nokia, @kenneth-arista, @ysmanman viz..

@arlakshm arlakshm added the Chassis for 202205 branch PRs needed for 202205 branch in msft repo label Apr 22, 2024
@xincunli-sonic
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft added the YANG YANG model related changes label Apr 23, 2024
@xincunli-sonic
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm arlakshm self-requested a review April 26, 2024 19:01
@qiluo-msft qiluo-msft merged commit 7a26fd7 into sonic-net:master Apr 26, 2024
19 checks passed
arlakshm pushed a commit to sonic-net/sonic-mgmt that referenced this pull request May 6, 2024
…12719)

In sonic-net/sonic-buildimage#18704 the header of port_config.ini was changed:

- # name              lanes     alias               index  role   speed    asic_port_name     coreId     corePortId     numVoq
+ # name              lanes     alias               index  role   speed    asic_port_name     core_id     core_port_id     num_voq
But port_alias.py depends on the header names and wasn't updated:

ALLOWED_HEADER = ['name', 'lanes', 'alias', 'index', 'asic_port_name', 'role', 'speed',
                  'coreid', 'coreportid', 'numvoq']
This PR updates port_alias.py to account for the port_config.ini change.

Summary:
Fixes #12718

Type of change
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
### Why I did it
Consolidate the `numvoq`, `coreid`, `coreportid` to be lower case which matches other leaf node convention.

### How I did it

Rename to lower case.

#### How to verify it
No need to verify.
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jun 20, 2024
…onic-net#12719)

In sonic-net/sonic-buildimage#18704 the header of port_config.ini was changed:

- # name              lanes     alias               index  role   speed    asic_port_name     coreId     corePortId     numVoq
+ # name              lanes     alias               index  role   speed    asic_port_name     core_id     core_port_id     num_voq
But port_alias.py depends on the header names and wasn't updated:

ALLOWED_HEADER = ['name', 'lanes', 'alias', 'index', 'asic_port_name', 'role', 'speed',
                  'coreid', 'coreportid', 'numvoq']
This PR updates port_alias.py to account for the port_config.ini change.

Summary:
Fixes sonic-net#12718

Type of change
mssonicbld pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 20, 2024
…12719)

In sonic-net/sonic-buildimage#18704 the header of port_config.ini was changed:

- # name              lanes     alias               index  role   speed    asic_port_name     coreId     corePortId     numVoq
+ # name              lanes     alias               index  role   speed    asic_port_name     core_id     core_port_id     num_voq
But port_alias.py depends on the header names and wasn't updated:

ALLOWED_HEADER = ['name', 'lanes', 'alias', 'index', 'asic_port_name', 'role', 'speed',
                  'coreid', 'coreportid', 'numvoq']
This PR updates port_alias.py to account for the port_config.ini change.

Summary:
Fixes #12718

Type of change
@kenneth-arista
Copy link
Contributor

@arlakshm Can we get this PR cherry-picked to 202205 ASAP?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chassis for 202205 branch PRs needed for 202205 branch in msft repo YANG YANG model related changes
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants