# File lib/hammer_cli_foreman/interface.rb, line 105
      def send_request
        nic_params = request_params
        interface = nic_params['interface']

        interface['id'] = nic_params['id'].to_i if nic_params['id']
        interface['compute_attributes'] = option_compute_attributes

        host_params = {}
        host_params['id'] = nic_params['host_id']
        host_params['host'] = {}
        host_params['host']['interfaces_attributes'] = mandatory_interfaces(nic_params['host_id'], interface['id'])

        reset_flag(host_params['host']['interfaces_attributes'], 'primary') if option_primary?
        reset_flag(host_params['host']['interfaces_attributes'], 'provision') if option_provision?

        host_params['host']['interfaces_attributes'] += [interface]

        HammerCLIForeman.foreman_resource!(:hosts).call(:update, host_params, request_headers, request_options)
      end