| OLD | NEW |
| 1 { "GUID": "guid", | 1 { "GUID": "guid", |
| 2 "Type": "VPN", | 2 "Type": "VPN", |
| 3 "Name": "MyL2TPVPN", | 3 "Name": "MyL2TPVPN", |
| 4 "VPN": { | 4 "VPN": { |
| 5 "Type": "L2TP-IPsec", | 5 "Type": "L2TP-IPsec", |
| 6 "Host": "some.host.org", | 6 "Host": "some.host.org", |
| 7 "IPsec": { | 7 "IPsec": { |
| 8 // These two fields are part of the ONC (and are required). However, they | 8 "AuthenticationType": "PSK", |
| 9 // don't exist explicitly in the Shill dictionary. As there is no use-case | 9 // This field is part of ONC (and is required). However, it does not |
| 10 // yet, that requires to reconstruct these fields from a Shill dictionary, | 10 // exist explicitly in the Shill dictionary. As there is no use-case yet |
| 11 // we don't require their translation. | 11 // that requires reconstructing this field from a Shill dictionary, we |
| 12 // "AuthenticationType": "PSK", | 12 // don't translate it. |
| 13 // "IKEVersion": 1, | 13 // "IKEVersion": 1, |
| 14 "PSK": "some_preshared_key", | 14 "PSK": "some_preshared_key", |
| 15 "SaveCredentials": true, | 15 "SaveCredentials": true, |
| 16 "XAUTH": { | 16 "XAUTH": { |
| 17 "Username": "some xauth username", | 17 "Username": "some xauth username", |
| 18 "Password": "some xauth password" | 18 "Password": "some xauth password" |
| 19 } | 19 } |
| 20 }, | 20 }, |
| 21 "L2TP": { | 21 "L2TP": { |
| 22 "Username": "some username", | 22 "Username": "some username", |
| 23 "Password": "some password", | 23 "Password": "some password", |
| 24 }, | 24 }, |
| 25 } | 25 } |
| 26 } | 26 } |
| OLD | NEW |