GNOME Bugzilla – Bug 759122
[review] lr/import-export: Add import and export capability
Last modified: 2015-12-16 14:20:15 UTC
84866b5 properties: add connection import capability 092a273 properties: add connection export capability 6b144d9 common: don't use uuid for name when exporting the connection 041cc56 common: never write "(null)" for user name 653147e common: split out the connection writer from service 808a8d9 all: recognize the openswan VPN service name as well 84e57d6 all: vpn service name and bus name are different things https://git.gnome.org/browse/network-manager-libreswan/log/?h=lr/import-export
> properties: add connection import capability if (g_str_has_prefix (str, "conn ")) { + g_object_set (s_con, NM_SETTING_CONNECTION_ID, &str[5], NULL); + } else if (g_str_has_prefix (str, "leftid=@")) { + nm_setting_vpn_add_data_item (s_vpn, NM_LIBRESWAN_LEFTID, &str[8]); Braces are not needed for single-statement blocks. Otherwise LGTM.
> common: never write "(null)" for user name + if (props_username && strlen (props_username)) Lets use if (props_username && *props_username) and similar for + else if (default_username && strlen (default_username)) Otherwise LGTM.
already merged to master: https://git.gnome.org/browse/network-manager-libreswan/commit/?id=4ab651ef7ce26a30906dab3b6ccc1402eecc5d5a