diff options
author | Devaev Maxim <[email protected]> | 2020-09-30 08:29:12 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-30 08:52:00 +0300 |
commit | 4bdb06f108543239b7cb3a547f3ace853b590274 (patch) | |
tree | 3def9304403be40e6c19d5bc9e1046099555898f /kvmd/apps/__init__.py | |
parent | 1b62570466804a2fe0a21bbdccd7a289c8974496 (diff) |
configurable ethernet driver
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 149782c4..038441f2 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -94,6 +94,7 @@ from ..validators.kvm import valid_ugpio_view_table from ..validators.hw import valid_gpio_pin from ..validators.hw import valid_otg_gadget from ..validators.hw import valid_otg_id +from ..validators.hw import valid_otg_ethernet # ===== @@ -404,6 +405,7 @@ def _get_config_scheme() -> Dict: "ethernet": { "enabled": Option(False, type=valid_bool), + "driver": Option("ecm", type=valid_otg_ethernet), "host_mac": Option("", type=(lambda arg: (valid_mac(arg) if arg else ""))), "kvm_mac": Option("", type=(lambda arg: (valid_mac(arg) if arg else ""))), }, |