Skip to content

Rename the leaf nodes to lower case.#18704

Merged
qiluo-msft merged 8 commits intosonic-net:masterfrom
xincunli-sonic:xincun/rename-port
Apr 26, 2024
Merged

Rename the leaf nodes to lower case.#18704
qiluo-msft merged 8 commits intosonic-net:masterfrom
xincunli-sonic:xincun/rename-port

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)

@xincunli-sonic xincunli-sonic requested a review from arlakshm April 18, 2024 20:18
@xincunli-sonic xincunli-sonic requested a review from lguohan as a code owner April 18, 2024 21:22
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

@azure-pipelines
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

@azure-pipelines
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
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
Collaborator

@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

Archived in project
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants