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

[DPB]Removing default admin status initialization in DPB flow while loading minigraph #8711

Merged
merged 3 commits into from
Sep 13, 2021

Conversation

dgsudharsan
Copy link
Collaborator

Why I did it

To Fix #8697 . The config load_minigraph initializes 'admin_status' to up when platform.json has DPB configs. This doesn't happen when using port_config.ini
The update minigraph has logic to initialize only the ports whose neighbors are defined or those belonging to portchannel
However, a change was introduced to have default admin status to be 'up' in portconfig.py when the minigraph was using platform.json

This will lead to sanity check failure in sonic-mgmt and thus no test cases could be run

How I did it

Fixed the platform.json flow not to initialize admin_status by default. Fixed UT to ensure that different cases are handled.

How to verify it

With dpb enabled perform config load_minigraph

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@dgsudharsan dgsudharsan requested a review from lguohan as a code owner September 9, 2021 01:28
@dgsudharsan
Copy link
Collaborator Author

@zhenggen-xu Please review

@yozhao101
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

liat-grozovik
liat-grozovik previously approved these changes Sep 10, 2021
@liat-grozovik
Copy link
Collaborator

@lguohan and @yxieca could you please help to review or assign someone?
This is blocking issue for running sonic mgmt tests on 202106/master

"mtu": "9100",
"admin_status": "up",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason we need move this field order? Same for Ethernet4.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified it back. It was not needed.

@dgsudharsan
Copy link
Collaborator Author

@lguohan Can you please review and merge? This fix is crucial for running regression on 202106

@lguohan lguohan merged commit b423b17 into sonic-net:master Sep 13, 2021
judyjoseph pushed a commit that referenced this pull request Sep 14, 2021
…oading minigraph (#8711)

To Fix #8697 . The config load_minigraph initializes 'admin_status' to up when platform.json has DPB configs. This doesn't happen when using port_config.ini
The update minigraph has logic to initialize only the ports whose neighbors are defined or those belonging to portchannel
However, a change was introduced to have default admin status to be 'up' in portconfig.py when the minigraph was using platform.json

This will lead to sanity check failure in sonic-mgmt and thus no test cases could be run
@dgsudharsan dgsudharsan deleted the mg_admin_fix branch March 9, 2023 01:50
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.

[DPB]config load_minigraph initializes all ports admin status to up when using platform.json
6 participants