Skip to content

[Mellanox] Enhance the Python3 support for platform API#64

Closed
stephenxs wants to merge 3 commits intomasterfrom
platform-api-python3
Closed

[Mellanox] Enhance the Python3 support for platform API#64
stephenxs wants to merge 3 commits intomasterfrom
platform-api-python3

Conversation

@stephenxs
Copy link
Owner

Why I did it

Enhance the Python3 support for platform API.
Originally, some platform APIs call SDK API which didn't support Python 3. Now the Python 3 APIs have been supported in SDK 4.4.3XXX, Python3 is completely supported by platform API

Signed-off-by: Stephen Sun [email protected]

How I did it

  • Start all platform daemons from python3
  • Remove #/usr/bin/env python at the beginning of each platform API file as the platform API won't be started as daemons but be imported from other daemons.
  • Adjust SDK API calls accordingly

How to verify it

  • Manually test
  • Run regression platform test

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

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

@stephenxs stephenxs closed this Apr 23, 2021
@stephenxs stephenxs deleted the platform-api-python3 branch June 15, 2021 15:10
stephenxs pushed a commit that referenced this pull request May 7, 2022
[master][sonic-linkmgrd] submodule updates

df51322 Longxiang Lyu   Fri May 6 10:01:46 2022 +0800   Add `ActiveActiveStateMachine` implementation (#64)
e721ceb Jing Zhang      Wed May 4 10:07:14 2022 -0700   Add doc for default route related changes  (#63)
7bb06fb Jing Zhang      Tue May 3 09:48:28 2022 -0700   Add Cli support to enable or disable default route related feature (#68)
e4b02cb Jing Zhang      Mon May 2 13:27:54 2022 -0700   Reset WaitActiveUp count before switching to active (#70)
212d960 Jing Zhang      Wed Apr 27 10:35:05 2022 -0700  lower log level to warning (#69)
48abc9e Jing Zhang      Thu Apr 14 16:50:04 2022 -0700  Add support to enable switchover time measurement (with link prober interval decreased to 10ms) feature  (#61)
c4858a6 Jing Zhang      Thu Apr 14 11:27:55 2022 -0700  Avoid proactively switching to `active` if default route is missing  (#62)

sign-off: Jing Zhang [email protected]
stephenxs pushed a commit that referenced this pull request Nov 22, 2022
Update sonic-mgmt-common submodule pointer to include the following:

68e0341 Remove LOGLEVEL DB since is no longer used (#64)

Signed-off-by: dprital <[email protected]>
stephenxs pushed a commit that referenced this pull request Dec 26, 2022
Incorporates following commits:

43a9179 Zain Budhwani Mon Dec 5 13:44:16 2022 -0800 Call evtc_stop after error (#64)
5712679 pettershao-ragilenetworks Fri Dec 2 11:04:08 2022 +0800 Fix the cfg variable configuration bug. (#65)
stephenxs pushed a commit that referenced this pull request Jan 17, 2023
Update sonic-mgmt-common submodule pointer to include the following:

68e0341 Remove LOGLEVEL DB since is no longer used (#64)

Signed-off-by: dprital <[email protected]>
stephenxs pushed a commit that referenced this pull request Jul 14, 2023
…utomatically (sonic-net#15417)

#### Why I did it
src/sonic-host-services
```
* cdc621b - (HEAD -> 202211, origin/202211) [202211][config reload] Config Reload Enhancement (#64) (2 days ago) [Sudharsan Dhamal Gopalarathnam]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Dec 26, 2023
…ically (sonic-net#17418)

#### Why I did it
src/sonic-dbsyncd
```
* 68baf40 - (HEAD -> 202305, origin/202305) [lldp-syncd] Fix unexpected exception in snmp-subagent (#64) (18 hours ago) [Zhaohui Sun]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Sep 24, 2024
…ically (sonic-net#19769)

#### Why I did it
src/sonic-dbsyncd
```
* 5956f0b - (HEAD -> 202311, origin/202311) Handle exception to avoid lldp_syncd crash (#65) (60 minutes ago) [Zhaohui Sun]
* d89a00d - [lldp-syncd] Fix unexpected exception in snmp-subagent (#64) (10 hours ago) [Zhaohui Sun]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request May 17, 2025
…ly (sonic-net#22581)

#### Why I did it
src/sonic-stp
```
* 0a74023 - (HEAD -> master, origin/master, origin/HEAD) pvst file changes to incoroprate mstp mode code changes (#64) (17 hours ago) [Divya Kumaran Chandralekha]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Jul 23, 2025
…ically (sonic-net#23173)

#### Why I did it
src/sonic-dash-ha
```
* 92d6243 - (HEAD -> master, origin/master, origin/HEAD) Initialize hamgrd from config_db and connect to swbusd (#63) (12 hours ago) [yue-fred-gao]
* d42013b - Dynamic actor creation and deletion (#64) (21 hours ago) [yue-fred-gao]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stephenxs pushed a commit that referenced this pull request Mar 9, 2026
…tically (sonic-net#25662)

#### Why I did it
src/sonic-dash-api
```
* 18a29c1 - (HEAD -> master, origin/master, origin/HEAD) Add step to compile Trixie in the CI builds (#64) (56 seconds ago) [Saikrishna Arcot]
* 99a835c - Move route rule priority to key (#62) (3 hours ago) [Lawrence Lee]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants