{"action":"created","issue":{"url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/129","labels_url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/129/comments","events_url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/129/events","html_url":"https://github.com/gds-operations/vcloud-edge_gateway/pull/129","id":97411657,"number":129,"title":"Add VPN functionality","user":{"login":"joshmyers","id":3025844,"avatar_url":"https://avatars.githubusercontent.com/u/3025844?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmyers","html_url":"https://github.com/joshmyers","followers_url":"https://api.github.com/users/joshmyers/followers","following_url":"https://api.github.com/users/joshmyers/following{/other_user}","gists_url":"https://api.github.com/users/joshmyers/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmyers/subscriptions","organizations_url":"https://api.github.com/users/joshmyers/orgs","repos_url":"https://api.github.com/users/joshmyers/repos","events_url":"https://api.github.com/users/joshmyers/events{/privacy}","received_events_url":"https://api.github.com/users/joshmyers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-27T08:30:28Z","updated_at":"2015-08-06T08:59:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/pulls/129","html_url":"https://github.com/gds-operations/vcloud-edge_gateway/pull/129","diff_url":"https://github.com/gds-operations/vcloud-edge_gateway/pull/129.diff","patch_url":"https://github.com/gds-operations/vcloud-edge_gateway/pull/129.patch"},"body":"I have tested this against the Carrenza Staging vSE. \r\n\r\n~~The VPN configuration gets uploaded OK but the test values I used caused the vSE to get into a bad state. We may need better validation on our end but as we don't have any logs, it's difficult to see what value exactly caused the VPN to go into this bad state. I'm going to raise a ticket with Carrenza for some information but thought I would open this PR in the mean time as the functionality seems mostly OK. Carrenza Ticket ID: #NXM-322-98442~~\r\n\r\nThis PR relies on: https://github.com/fog/fog/pull/3639 + https://github.com/gds-operations/vcloud-edge_gateway/pull/128\r\n\r\nThis is now working, but still relies on the above:\r\n```\r\n~/govuk/vcloud-edge_gateway(branch:add_vpn*) » FOG_CREDENTIAL=\"carrenza-staging\" be vcloud-edge-configure /Users/joshmyers/govuk/vcloud-edge_gateway/examples/vcloud-configure-edge/vpn-tunnels.yaml\r\nI, [2015-07-28T13:31:49.077455 #72306]  INFO -- : Updating EdgeGateway 8dbc24ab-8db1-40a7-9bca-8b7d009433df\r\n    100/100  |**************************************************|\r\n- GatewayIpsecVpnService.:\r\n+ GatewayIpsecVpnService.: {:IsEnabled=>\"true\", :Tunnel=>[{:Name=>\"staging_tunnel\", :Description=>\"test tunnel\", :IpsecVpnLocalPeer=>{:Id=>\"1223-123UDH-22222\", :Name=>\"foobarbaz\"}, :PeerIpAddress=>\"172.16.3.16\", :PeerId=>\"1223-123UDH-12321\", :LocalIpAddress=>\"31.210.245.70\", :LocalId=>\"202UB-9602-UB629\", :PeerSubnet=>{:Name=>\"192.168.0.0/18\", :Gateway=>\"192.168.0.0\", :Netmask=>\"255.255.192.0\"}, :SharedSecret=>\"Secretsecretsecretsecretsecretsecret123456789\", :EncryptionProtocol=>\"AES\", :Mtu=>1500, :IsEnabled=>true, :LocalSubnet=>[{:Name=>\"Management\", :Gateway=>\"10.2.0.0\", :Netmask=>\"255.255.255.0\"}]}]}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/comments/128296847","html_url":"https://github.com/gds-operations/vcloud-edge_gateway/pull/129#issuecomment-128296847","issue_url":"https://api.github.com/repos/gds-operations/vcloud-edge_gateway/issues/129","id":128296847,"user":{"login":"mattbostock","id":4348848,"avatar_url":"https://avatars.githubusercontent.com/u/4348848?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbostock","html_url":"https://github.com/mattbostock","followers_url":"https://api.github.com/users/mattbostock/followers","following_url":"https://api.github.com/users/mattbostock/following{/other_user}","gists_url":"https://api.github.com/users/mattbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbostock/subscriptions","organizations_url":"https://api.github.com/users/mattbostock/orgs","repos_url":"https://api.github.com/users/mattbostock/repos","events_url":"https://api.github.com/users/mattbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mattbostock/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T08:59:51Z","updated_at":"2015-08-06T08:59:51Z","body":"@joshmyers Did you see my comment above on the test description?"}}