parameters: (config, request)
return_statement: return send_file(
          filename='{0}.tar.gz'.format(config.name), contents=config.generate().getvalue()
      )
docstring: calls ``update_last_ip`` and returns a ``ControllerResponse``
      which includes the configuration tar.gz as attachment
docstring_summary: calls ``update_last_ip`` and returns a ``ControllerResponse``
      which includes the configuration tar.gz as attachment
docstring_tokens: calls update_last_ip and returns a ControllerResponse which includes the configuration tar . gz as attachment
function: def send_device_config(config, request):
      """
      calls ``update_last_ip`` and returns a ``ControllerResponse``
      which includes the configuration tar.gz as attachment
      """
      update_last_ip(config.device, request)
      return send_file(
          filename='{0}.tar.gz'.format(config.name), contents=config.generate().getvalue()
      )
function_tokens: def send_device_config ( config , request ) : update_last_ip ( config . device , request ) return send_file ( filename = '{0}.tar.gz' . format ( config . name ) , contents = config . generate ( ) . getvalue ( ) )