summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-30 03:53:39 +0300
committerDevaev Maxim <[email protected]>2020-09-30 04:53:21 +0300
commit771640a79c437ecc39296faee1c4dedb016d71a2 (patch)
treef71c1818c5bd1da6209e238829e3a43c231c683a /kvmd/apps/__init__.py
parenta86ec65024774bab1b6b62ec30a8cf46c0e1613d (diff)
options to configure otg ethernet
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 5a2b5244..a760d188 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -387,6 +387,12 @@ def _get_config_scheme() -> Dict:
"enabled": Option(False, type=valid_bool),
},
+ "ethernet": {
+ "enabled": Option(False, type=valid_bool),
+ "host_mac": Option("", type=valid_mac, only_if="enabled"),
+ "kvm_mac": Option("", type=valid_mac, only_if="enabled"),
+ },
+
"drives": {
"enabled": Option(False, type=valid_bool),
"count": Option(1, type=valid_int_f1),