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

[port_config] Introduce ad-hoc mport_config.json file #8066

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

Blueve
Copy link
Contributor

@Blueve Blueve commented Jul 6, 2021

Why I did it

The port state will be reset to up if user use config load_minigraph to recover configurations.
In another PR, we supported consume port_config.json file with minigraph: Related PR: sonic-net/sonic-utilities#1705

This PR is for support port_config.json in image level, includes migration/secure boot.

How I did it

The usage of port_config.json is very similar with acl.json, thus I modified existing codebase and add port_config.json to all places that involved acl.json

How to verify it

TODO

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

  1. Modified Aboot/boot0.j2 to support remove port_config.json during flash cleaning
  2. Modified config-setup script to support copy port_config.json file to backup directory
  3. Modified platform/rc.local script to support decode/unzip/copy port_config.json during nos migration and support copy port_config.json to /etc/sonic/old_config for migration preparing during first boot task

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

@Blueve Blueve merged commit 3da6f12 into sonic-net:master Jul 15, 2021
qiluo-msft pushed a commit that referenced this pull request Jul 15, 2021
@yxieca
Copy link
Contributor

yxieca commented Jul 19, 2021

@Blueve this change cannot be cherry-picked to 201811 branch cleanly. Please create separate PR. Thanks!

@Blueve
Copy link
Contributor Author

Blueve commented Jul 26, 2021

@yxieca Thanks! I will send a new PR for 201811

carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
@Blueve Blueve deleted the dev/jika/portmg branch September 9, 2021 06:01
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.

3 participants