Skip to content

[pdu support] unify the PDU support naming convention#2960

Merged
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:pdu
Feb 10, 2021
Merged

[pdu support] unify the PDU support naming convention#2960
yxieca merged 1 commit intosonic-net:masterfrom
yxieca:pdu

Conversation

@yxieca
Copy link
Collaborator

@yxieca yxieca commented Feb 8, 2021

Description of PR

Unify the naming convention of PDU and PSU

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

What is the motivation for this PR?

PDU/PSU was fix used in current code. The device external to the DUT that supply power to PSU (on DUT) is PDU. The unit send out power is outlet.

How did you do it?

This change unifies this concept in class names, function names and variables.

No functional change is supposed to happen with this change.

Signed-off-by: Ying Xie ying.xie@microsoft.com

How did you verify/test it?

Run following test and passed:

platform_tests/test_reboot.py::test_power_off_reboot
platform_tests/test_platform_info.py::test_turn_on_off_psu_and_check_psustatus
snmp/test_snmp_phy_entity.py::test_turn_off_pdu_and_check_psu_info

And validated devutils continue working.

@yxieca yxieca requested review from a team, jleveque and wangxin as code owners February 8, 2021 23:53
@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2021

This pull request introduces 3 alerts and fixes 2 when merging 63d3eafb7ac72bb1cdecf726584a0617a2ba5bbc into 22402ac - view on LGTM.com

new alerts:

  • 2 for Unused import
  • 1 for Suspicious unused loop iteration variable

fixed alerts:

  • 2 for Unused import

@jleveque
Copy link
Contributor

jleveque commented Feb 9, 2021

@yxieca: I assume some of my review comments were hidden to you, because not all were addressed in your latest commit.

@yxieca
Copy link
Collaborator Author

yxieca commented Feb 9, 2021

@yxieca: I assume some of my review comments were hidden to you, because not all were addressed in your latest commit.

you are right. I missed one push after running test for all_outlets changes.

@jleveque
Copy link
Contributor

jleveque commented Feb 9, 2021

@yxieca: I assume some of my review comments were hidden to you, because not all were addressed in your latest commit.

you are right. I missed one push after running test for all_outlets changes.

It looks like there are still unaddressed comments. Are they hidden/compressed for you?

@lgtm-com

This comment has been minimized.

@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2021

This pull request fixes 2 alerts when merging efbff69c93756863fd8d1d3253e31e566dd746d7 into ea6535e - view on LGTM.com

fixed alerts:

  • 2 for Unused import

The device external to the DUT that supply power to PSU (on DUT)
is PDU. The unit send out power is outlet.

This change unifies this concept in class names, function names
and variables.

No functional change is supposed to happen with this change.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
@yxieca
Copy link
Collaborator Author

yxieca commented Feb 9, 2021

Addressed the merge conflict

@lgtm-com
Copy link

lgtm-com bot commented Feb 9, 2021

This pull request fixes 2 alerts when merging 7edbb94 into 451d052 - view on LGTM.com

fixed alerts:

  • 2 for Unused import

@yxieca yxieca merged commit e08508d into sonic-net:master Feb 10, 2021
@yxieca yxieca deleted the pdu branch February 10, 2021 03:21
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