[Platform API] Test against Python 3 platform API if available on DuT#2821
Merged
jleveque merged 2 commits intosonic-net:masterfrom Jan 17, 2021
jleveque:plat_api_py3
Merged
[Platform API] Test against Python 3 platform API if available on DuT#2821jleveque merged 2 commits intosonic-net:masterfrom jleveque:plat_api_py3
jleveque merged 2 commits intosonic-net:masterfrom
jleveque:plat_api_py3
Conversation
yxieca
approved these changes
Jan 17, 2021
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…atically (sonic-net#15320) src/sonic-utilities * ec472146 - (HEAD -> 202205, origin/202205) fix show interface neighbor expected empty issue (sonic-net#2465) (3 minutes ago) [jcaiMR] * d1f4413c - [vlan][dhcp_relay] Clear dhcpv6 relay counter while deleting vlan (sonic-net#2852) (6 hours ago) [Yaqiang Zhu] * 051f28ce - [db-migrator] Fix hwsku match for 6100 and add errors when hwsku is None (sonic-net#2821) (7 hours ago) [Vaibhav Hemant Dixit]
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…lly (sonic-net#15943) #### Why I did it src/sonic-swss ``` * 6ec611dc - (HEAD -> 202211, origin/202211) [202211][ppi]: Implement port bulk comparison logic (sonic-net#2564) (sonic-net#2821) (19 hours ago) [Nazarii Hnydyn] ``` #### How I did it #### How to verify it #### Description for the changelog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Test against Python 3 platform API if available on DuT. If not available, test against the Python 2 platform API
Type of change
Approach
What is the motivation for this PR?
SONiC is migrating from Python 2 to Python 3. As vendors provide Python 3 versions of their sonic-platform package, we should begin testing against the Python 3 version of the package, rather than the Python 2 package.
How did you do it?
docker exec -i pmon python3 -c "import sonic_platform"on the DuT to determine if a Python 3 sonic-platform package is installed. If it is, we will run platform_api_server.py on the DuT using Python 3, otherwise we will run it using Python 2.str.encode('utf-8'), which works with both Python 2 and 3.How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation