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

[restore_nat_entries.py] Convert to Python 3; Use logger from sonic-py-common for uniform logging #5788

Merged
merged 1 commit into from
Nov 6, 2020
Merged

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Nov 3, 2020

- Why I did it

As part of moving all SONiC code from Python 2 (no longer supported) to Python 3

- How I did it

  • Convert restore_nat_entries.py script to Python 3
  • Use logger from sonic-py-common for uniform logging
  • Reorganize imports alphabetically per PEP8 standard
  • Two blank lines precede functions per PEP8 standard

- How to verify it

Ensure restore_nat_entries.py still functions correctly

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

  • 201811
  • 201911
  • 202006

@jleveque
Copy link
Contributor Author

jleveque commented Nov 5, 2020

Retest vsimage please

@jleveque jleveque marked this pull request as ready for review November 6, 2020 05:28
@jleveque jleveque requested a review from lguohan November 6, 2020 05:28
@jleveque jleveque merged commit ad555d9 into sonic-net:master Nov 6, 2020
@jleveque jleveque deleted the restore_nat_entries_py3 branch November 6, 2020 18:15
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
- Convert restore_nat_entries.py script to Python 3
- Use logger from sonic-py-common for uniform logging
- Reorganize imports alphabetically per PEP8 standard
- Two blank lines precede functions per PEP8 standard
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.

2 participants