Skip to content

Cherry-picking PRs from master to resolve database not initialize issue#3279

Closed
wumiaont wants to merge 4 commits intosonic-net:202205from
wumiaont:202205
Closed

Cherry-picking PRs from master to resolve database not initialize issue#3279
wumiaont wants to merge 4 commits intosonic-net:202205from
wumiaont:202205

Conversation

@wumiaont
Copy link

@wumiaont wumiaont commented Apr 22, 2024

What I did

This PR is trying to resolve issue: #3278. It's cherry-picking the fixes from those PRs in master.
/sfputil/main.py: #3168
./scripts/port2alias: #3217

How to verify it

Ran mgmt testing suite against the fix and check issues has been resolved.

longhuan-cisco and others added 3 commits April 22, 2024 14:57
* Fix sfputil invalid namesapce error

* Add test case for loading port configuration

* Improve cov
Basically port2alias Cli became broken on multi-asic platforms after introduction of sonic-net/sonic-buildimage#10960 which removed the initialization of global DB config from portconfig.py (library side) and expects application to do it, but here application side (port2alias) was not updated accordingly.

How I did it
Add load_db_config call to port2alias for initialization
…nfig or initialize(). This is a porting fix effort from master sonic-net#3257.
@wumiaont wumiaont closed this Apr 22, 2024
…GlobalConfig or initialize(). This is a porting fix effort from master sonic-net#3257."

This reverts commit 5b281bb.
@wumiaont wumiaont reopened this Apr 22, 2024
@wumiaont wumiaont closed this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants