From deb0e10adde1504624337e60e59b7d496d4e4084 Mon Sep 17 00:00:00 2001 From: Daniel Aragao Date: Wed, 28 May 2014 13:35:33 +1000 Subject: [PATCH] Adds VPN section to edge gateway service configuration --- .../generators/compute/edge_gateway_service_configuration.rb | 2 +- tests/vcloud_director/requests/compute/edge_gateway_tests.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb b/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb index f6d67c629..33aef5849 100644 --- a/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +++ b/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb @@ -58,7 +58,7 @@ module Fog xml.PeerIpAddress tunnel_config[:PeerIpAddress] xml.PeerId tunnel_config[:PeerId] xml.LocalIpAddress tunnel_config[:LocalIpAddress] - xml.LocalId tunnel_config[:LocalId] + xml.LocalId tunnel_config[:LocalId] tunnel_config[:LocalSubnet].each do |subnet| xml.LocalSubnet { xml.Name subnet[:Name] diff --git a/tests/vcloud_director/requests/compute/edge_gateway_tests.rb b/tests/vcloud_director/requests/compute/edge_gateway_tests.rb index 465553907..3a9ab2f2f 100644 --- a/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +++ b/tests/vcloud_director/requests/compute/edge_gateway_tests.rb @@ -17,7 +17,7 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector } @vpn_configuration = { - :GatewayIpsecVpnService => + :GatewayIpsecVpnService => { :IsEnabled => "true", :Tunnel => [{