Skip to content

port_alias.py: Handle port_config.ini header change#12719

Merged
arlakshm merged 1 commit intosonic-net:masterfrom
arista-nwolfe:master-port-alias-header-fix
May 6, 2024
Merged

port_alias.py: Handle port_config.ini header change#12719
arlakshm merged 1 commit intosonic-net:masterfrom
arista-nwolfe:master-port-alias-header-fix

Conversation

@arista-nwolfe
Copy link
Copy Markdown
Contributor

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

[x] Bug fix

@wenyiz2021 wenyiz2021 requested a review from xincunli-sonic May 3, 2024 21:45
@arlakshm arlakshm merged commit 99b8794 into sonic-net:master May 6, 2024
@judyjoseph
Copy link
Copy Markdown
Contributor

@wangxin @StormLiangMS could you help merge this in 202205, this PR is needed without which the swss/syncd crashes for sonic-mgmt test/pipeline runs

@wenyiz2021
Copy link
Copy Markdown
Contributor

pinged @StormLiangMS

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
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202205: #13374

mssonicbld pushed a commit 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

port_alias.py returns empty sysports list due to port_config.ini header change

7 participants