diff --git a/sonic-chassisd/tests/mock_platform.py b/sonic-chassisd/tests/mock_platform.py index 7f8ed6726..a2a86b4a9 100644 --- a/sonic-chassisd/tests/mock_platform.py +++ b/sonic-chassisd/tests/mock_platform.py @@ -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