Skip to content

Commit 3aec3c1

Browse files
committed
change and reset sed password
Signed-off-by: Ben Levi <belevi@nvidia.com>
1 parent 0727792 commit 3aec3c1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

sonic_platform_base/chassis_base.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,3 +799,23 @@ def get_bmc(self):
799799
"""
800800
return self._bmc
801801

802+
def change_sed_password(self, new_password):
803+
"""
804+
Change the SED (Self-Encrypting Drive) password for the platform.
805+
806+
Args:
807+
new_password (str): The new password to set for the SED
808+
809+
Returns:
810+
bool: True if the password change process completed successfully, False otherwise
811+
"""
812+
raise NotImplementedError
813+
814+
def reset_sed_password(self):
815+
"""
816+
Reset the SED (Self-Encrypting Drive) password to default for the platform.
817+
818+
Returns:
819+
bool: True if the password reset process completed successfully, False otherwise
820+
"""
821+
raise NotImplementedError

tests/chassis_base_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def test_chassis_base(self):
2525
[chassis.get_dpu_id, [], {"name": "DPU0"}],
2626
[chassis.get_dataplane_state, [], {}],
2727
[chassis.get_controlplane_state, [], {}],
28+
[chassis.change_sed_password, ["new_password"], {}],
29+
[chassis.reset_sed_password, [], {}],
2830
]
2931

3032
for method in not_implemented_methods:

0 commit comments

Comments
 (0)