-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nokia ixs7215] Watchdog timer support (#8377)
- Loading branch information
1 parent
01e2235
commit 1fc4cb1
Showing
2 changed files
with
100 additions
and
30 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
platform/marvell-armhf/sonic-platform-nokia/7215/sonic_platform/test/test-watchdog.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/python | ||
|
||
from sonic_platform.chassis import Chassis | ||
|
||
|
||
def main(): | ||
print("---------------------") | ||
print("Chassis Watchdog Test") | ||
print("---------------------") | ||
|
||
chassis = Chassis() | ||
|
||
watchdog = chassis.get_watchdog() | ||
|
||
print(" Armed: {}".format(watchdog.is_armed())) | ||
print(" Time Left: {}".format(watchdog.get_remaining_time())) | ||
|
||
return | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters