    # File lib/fog/ecloud/models/compute/server.rb, line 193
            def add_ip(options)
              begin
                slice_ips = ips
              rescue
                slice_ips = []
              end
              begin
                slice_networks = networks
              rescue
                slice_networks = []
              end
              slice_networks = slice_networks.map { |n| {:href => n.href, :name => n.name.split(' ')[0], :type => 'application/vnd.tmrk.cloud.network'} }.push({:href => options[:href], :name => options[:network_name], :type => 'application/vnd.tmrk.cloud.network'}).uniq
              slice_ips = slice_ips.map { |i| {:name => i.name, :network_name => i.other_links[:Link][:name]} }.push({:name => options[:ip], :network_name => options[:network_name]})
              slice_ips.each do |ip|
                slice_networks.each do |network|
                  if network[:name] == ip[:network_name]
                    network[:ips] ||= []
                    network[:ips].push(ip[:name])
                  end
                end
              end
              data = connection.virtual_machine_add_ip(href + "/assignedIps", slice_networks).body
              task = Fog::Compute::Ecloud::Tasks.new(:connection => connection, :href => data[:href])[0]
            end