    # File lib/fog/ecloud/models/compute/server.rb, line 186
            def add_nic(network)
              unit_number = nics.map { |n| n[:UnitNumber].to_i }.sort[-1] + 1
              vm_nics = nics << {:UnitNumber => unit_number, :Network => {:href => network.href, :name => network.name, :type => "application/vnd.tmrk.cloud.network"}}
              data = connection.virtual_machine_edit_hardware_configuration(href + "/hardwareConfiguration", _configuration_data(:nics => vm_nics)).body
              task = Fog::Compute::Ecloud::Tasks.new(:connection => connection, :href => data[:href])[0]
            end