Skip to content

[Mellanox] enhance the reboot cause handling on 201811 #3253

Merged
jleveque merged 3 commits intosonic-net:201811from
stephenxs:enable-load-mlnx-platform-api-as-a-whole
Aug 2, 2019
Merged

[Mellanox] enhance the reboot cause handling on 201811 #3253
jleveque merged 3 commits intosonic-net:201811from
stephenxs:enable-load-mlnx-platform-api-as-a-whole

Conversation

@stephenxs
Copy link
Copy Markdown
Collaborator

@stephenxs stephenxs commented Aug 1, 2019

- What I did

  1. Enable platform-api to be loaded as a whole so that other modules can import it simply by "import sonic_platform". Currently, only process-reboot-cause imports this module. Originally it uses "import sonic_platform.platform", which can fail when "platform" is not supported.
  2. Support currently hw-management currently running on 201811.

- How I did it

  1. add specific initialization to init.py for the module.
  2. adaptively find reboot cause file by searching for a series of possible dirs.

- How to verify it
test whether the reboot cause can be successfully parsed.

- Description for the changelog
[Mellanox] enable new platform api to be loaded as a whole.

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

@stephenxs stephenxs changed the title [Mellanox] enable new platform api to be loaded as a whole [Mellanox] enhance the reboot cause handling on 201811 Aug 1, 2019
Comment thread platform/mellanox/mlnx-platform-api/sonic_platform/chassis.py
@jleveque jleveque merged commit ca38147 into sonic-net:201811 Aug 2, 2019
@stephenxs stephenxs deleted the enable-load-mlnx-platform-api-as-a-whole branch August 2, 2019 21:36
mssonicbld added a commit that referenced this pull request Jun 6, 2024
…atically (#19225)

#### Why I did it
src/sonic-utilities
```
* 1ebd099 - (HEAD -> master, origin/master, origin/HEAD) Fix show fabric monitor capacity command when the feature is disabled. (#3347) (8 hours ago) [jfeng-arista]
* 6829ded - Add W-ECMP CLI (#3253) (10 hours ago) [Nazarii Hnydyn]
* 4133ef5 - [chassis][voq] Added support for Voq Counters(SAI_SWITCH_STAT_PACKET_INTEGRITY_DROP,SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS) for Voq/Fabric switches (#3322) (25 hours ago) [saksarav-nokia]
```
#### 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants