summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Märdian <lukas.maerdian@canonical.com>2020-12-16 18:19:46 +0100
committerGitHub <noreply@github.com>2020-12-16 18:19:46 +0100
commit41bfbd6db8ad8126f00a73eb6fdda637d7a717eb (patch)
tree01da8cb42b5fc29b4f5ff5e007368a8a36711856 /src
parent85ff2f5396144b6732d5c0b5a71699e55ce02c7f (diff)
parse: fix 'networkmanager:' backend options for modem connections (#179)
The COMMON_BACKEND_HANDLERS have been forgotten for modem connections apparently. Add them to allow the definition of the special networkmanager: mapping, used for NetworkManager integration. We do not (yet) use that information (like uuid) in the current implementation. But reading YAML via NetworkManager will be broken if the networkmanager: mapping is not accepted.
Diffstat (limited to 'src')
-rw-r--r--src/parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c
index 8c68be7..607c511 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -2221,6 +2221,7 @@ static const mapping_entry_handler vlan_def_handlers[] = {
static const mapping_entry_handler modem_def_handlers[] = {
COMMON_LINK_HANDLERS,
+ COMMON_BACKEND_HANDLERS,
{"apn", YAML_SCALAR_NODE, handle_netdef_str, NULL, netdef_offset(modem_params.apn)},
{"auto-config", YAML_SCALAR_NODE, handle_netdef_bool, NULL, netdef_offset(modem_params.auto_config)},
{"device-id", YAML_SCALAR_NODE, handle_netdef_str, NULL, netdef_offset(modem_params.device_id)},