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

[202012] Fix migration of pfcwd_sw_enable #2204

Merged

Conversation

bingwang-ms
Copy link
Contributor

Signed-off-by: bingwang wang.bing@microsoft.com

What I did

This PR is to fix a bug in migrate_pfcwd_sw_enable_table.
As migrate_pfcwd_sw_enable_table is a step of common_migration_ops, it's always called in any version.
Even if the key pfcwd_sw_enable is present, the script still overwrite it. This is unexpected.

This PR addressed the issue by checking the existence of pfcwd_sw_enable before adding it.

How I did it

Check the existence of pfcwd_sw_enable before adding it.

How to verify it

Verified by vstest.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: bingwang <wang.bing@microsoft.com>
@bingwang-ms bingwang-ms added the Bug label Jun 9, 2022
Signed-off-by: bingwang <wang.bing@microsoft.com>
Signed-off-by: bingwang <wang.bing@microsoft.com>
@bingwang-ms bingwang-ms merged commit b0d7062 into sonic-net:202012 Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants