Skip to content

Offload VPN file parsing to NetworkManager

Nicolas Fella requested to merge work/nico/vpnimport2 into master

Parsing the file is complex, with many opportunities to get it wrong

We can offload the whole parsing to nm_vpn_editor_plugin_import, which takes a file name and gives us a connection object

We then can use NM's client API to add that connection

This closely matches what "nmcli connection import" does

BUG: 396530

Edited by Nicolas Fella

Merge request reports

Loading