Skip to content

Commit

Permalink
Added get_reboot_cause() to mock_platform.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Oct 23, 2024
1 parent 54accfe commit 466f6d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sonic-chassisd/tests/mock_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ def set_midplane_reachable(self, up):
def get_all_asics(self):
return self.asic_list

def get_reboot_cause(self):
reboot_cause = {
'name': '2024_10_19_01_17_18',
'cause': 'reboot',
'comment': 'N/A',
'time': 'N/A',
'device': 'DPU0',
'user': 'bla'
}
return reboot_cause

def get_serial(self):
return self.module_serial

Expand Down

0 comments on commit 466f6d3

Please sign in to comment.