    # File lib/fog/ecloud/models/compute/server.rb, line 198
            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 = service.virtual_machine_edit_hardware_configuration(href + "/hardwareConfiguration", _configuration_data(:nics => vm_nics)).body
              task = self.service.tasks.new(:href => data[:href])[0]
            end