Skip to content

[code sync] Merge code from sonic-net/sonic-swss:202605 to 202607 - #300

Merged
mssonicbld merged 2 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge
Sep 17, 2026
Merged

mssonicbld merged 2 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 0bdf61f5 - (origin/202605) Set default port role to external (#4887) (2026-09-16) [mssonicbld]<br>```

mssonicbld and others added 2 commits September 16, 2026 15:13
<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
Default PortConfig::role and Port::m_role to Ext.
Update unit tests to cover ports without an explicit role.

**Why I did it**
Port roles were left uninitialized when the role field was absent from port_config.ini. This could misidentify front-panel ports as inband or recirculation ports, skipping SerDes programming and causing subsequent warm-reboot reconciliation failures.

**How I verified it**
Verified that the Arista-7050CX3-32S-C32 retrieves preemphasis configurations from ASIC_DB when a role is omitted in port_config.ini and values are required from media_settings.json:
202511 with internal review build:
```shell
admin@ld495:/tmp$ show version | grep "SONiC Software Version"
SONiC Software Version: SONiC.branch.202511-ars.bb776d89-buildimage.origin.202511-review.800778.3-2026.09.11.16.37
admin@ld495:/tmp$ sonic-db-cli ASIC_DB HGETALL ASIC_STATE:SAI_OBJECT_TYPE_PORT_SERDES:oid:0x57000000000651
{'SAI_PORT_SERDES_ATTR_PORT_ID': 'oid:0x1000000000012', 'SAI_PORT_SERDES_ATTR_PREEMPHASIS': '4:404995,404995,404995,404995'}
```
202605 with internal review build:
```shell
admin@ld481:/tmp$ show version | grep "SONiC Software Version"
SONiC Software Version: SONiC.branch.202605-ars.41a922a7-buildimage.4519ff2e1d167f878f9f29b1542174c3e04f411f-review.798485.3-2026.09.10.06.13
admin@ld481:/tmp$ sonic-db-cli ASIC_DB HGETALL ASIC_STATE:SAI_OBJECT_TYPE_PORT_SERDES:oid:0x5700000000448b
{'SAI_PORT_SERDES_ATTR_PREEMPHASIS': '4:404995,404995,404995,404995', 'SAI_PORT_SERDES_ATTR_PORT_ID': 'oid:0x1000000000012'}
```

**Details if related**
Fixes: sonic-net/sonic-buildimage#28167

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

@mssonicbld
mssonicbld merged commit 638b832 into Azure:202607 Sep 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant