summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-09-23 17:03:10 +0300
committerMaxim Devaev <[email protected]>2021-09-23 17:12:15 +0300
commitab92a2d7084dea554edb9d5d0032327b302ef9f3 (patch)
tree209bc6045d9dd3ea1e40a9b0d9559f7ddb67d852 /kvmd/apps/__init__.py
parent8d53c89a6aa3e4b5e9729aeadf8c0a20b985081d (diff)
rtc watchdog for v3
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 348f2f0d..b3497682 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -64,6 +64,7 @@ from ..validators.basic import valid_stripped_string
from ..validators.basic import valid_stripped_string_not_empty
from ..validators.basic import valid_bool
from ..validators.basic import valid_number
+from ..validators.basic import valid_int_f0
from ..validators.basic import valid_int_f1
from ..validators.basic import valid_float_f0
from ..validators.basic import valid_float_f01
@@ -691,4 +692,10 @@ def _get_config_scheme() -> Dict:
"cmd_remove": Option([], type=valid_options),
"cmd_append": Option([], type=valid_options),
},
+
+ "watchdog": {
+ "device": Option(0, type=valid_int_f0),
+ "timeout": Option(300, type=valid_int_f1),
+ "interval": Option(30, type=valid_int_f1),
+ },
}