summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-28 05:12:03 +0300
committerDevaev Maxim <[email protected]>2020-10-28 05:21:19 +0300
commite9eb6460d34e48753cef2eaf6761a2642decfe24 (patch)
tree2f329224e1aed7ec4d3203edb8dc373ee8dca281 /kvmd/apps/__init__.py
parente7cbf1e1e213338a81cda874be4933472b142eec (diff)
ipmi sol
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 6d133ac9..820278ce 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -93,6 +93,7 @@ from ..validators.kvm import valid_ugpio_channel
from ..validators.kvm import valid_ugpio_mode
from ..validators.kvm import valid_ugpio_view_table
+from ..validators.hw import valid_tty_speed
from ..validators.hw import valid_gpio_pin
from ..validators.hw import valid_otg_gadget
from ..validators.hw import valid_otg_id
@@ -496,6 +497,13 @@ def _get_config_scheme() -> Dict:
"auth": {
"file": Option("/etc/kvmd/ipmipasswd", type=valid_abs_file, unpack_as="path"),
},
+
+ "sol": {
+ "device": Option("", type=(lambda arg: (valid_abs_path(arg) if arg else "")), unpack_as="sol_device_path"),
+ "speed": Option(115200, type=valid_tty_speed, unpack_as="sol_speed"),
+ "select_timeout": Option(0.1, type=valid_float_f01, unpack_as="sol_select_timeout"),
+ "proxy_port": Option(0, type=valid_port, unpack_as="sol_proxy_port"),
+ },
},
"vnc": {