    # File lib/fog/ecloud/models/compute/server.rb, line 205
            def add_ip(options)
              slice_ips = begin
                            ips
                          rescue
                            []
                          end
              slice_networks = if slice_ips.empty?
                                 []
                               else
                                 ips.map { |ip| {:href => ip.network.href, :name => ip.network.name.split(' ')[0], :type => ip.network.type} }.push({:href => options[:href], :name => options[:network_name], :type => "application/vnd.tmrk.cloud.network"}).uniq
                               end
              slice_ips = slice_ips.map { |i| {:name => i.address.name, :network_name => i.network.name} }.push({:name => options[:ip], :network_name => options[:network_name]}).uniq
              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 = service.virtual_machine_edit_assigned_ips(href + "/assignedIps", slice_networks).body
              task = self.service.tasks.new(data)
            end