<?xml version="1.0"?>
<DescribeAddressesResponse xmlns="http://ec2.amazonaws.com/doc/<%= erb_version %>/">
   <requestId><%= @request_id %></requestId>
   <addressesSet>
   <% vnet.each("LEASES/LEASE[USED=1 and VID=-1]") do |eip| %>
      <% if vnet["TEMPLATE/EC2_ADDRESSES[IP=\"#{eip["IP"]}\"]/UID"] == user_id.to_s %>
     <item>
       <publicIp><%= eip["IP"] %></publicIp>
       <domain>standard</domain>
       <% if vm_id = vnet["TEMPLATE/EC2_ADDRESSES[IP=\"#{eip["IP"]}\"]/VMID"] %>
       <instanceId>i-<%= sprintf('%08i', vm_id) %></instanceId>
       <% else %>
       <instanceId/>
       <% end %>
       <associationId/>
       <allocationId/>
     </item>
      <% end %>
   <% end %>
   </addressesSet>
</DescribeAddressesResponse>