# File lib/fog/network/openstack/requests/create_vpn_service.rb, line 5 def create_vpn_service(subnet_id, router_id, options = {}) data = { 'vpnservice' => { 'subnet_id' => subnet_id, 'router_id' => router_id } } vanilla_options = [:name, :description, :admin_state_up, :tenant_id] vanilla_options.reject { |o| options[o].nil? }.each do |key| data['vpnservice'][key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => [201], :method => 'POST', :path => 'vpn/vpnservices' ) end