.. versionadded:: 2019.2.0

    Return the key-value arguments used for the authentication arguments for the
    :mod:`pyeapi execution module <salt.module.arista_pyeapi>`.

    CLI Example:

    .. code-block:: bash

        salt '*' napalm.pyeapi_nxos_api_args

def pyeapi_nxos_api_args(**prev_kwargs):
    '''
    .. versionadded:: 2019.2.0

    Return the key-value arguments used for the authentication arguments for the
    :mod:`pyeapi execution module <salt.module.arista_pyeapi>`.

    CLI Example:

    .. code-block:: bash

        salt '*' napalm.pyeapi_nxos_api_args
    '''
    kwargs = {}
    napalm_opts = salt.utils.napalm.get_device_opts(__opts__, salt_obj=__salt__)
    optional_args = napalm_opts['OPTIONAL_ARGS']
    kwargs['host'] = napalm_opts['HOSTNAME']
    kwargs['username'] = napalm_opts['USERNAME']
    kwargs['password'] = napalm_opts['PASSWORD']
    kwargs['timeout'] = napalm_opts['TIMEOUT']
    kwargs['transport'] = optional_args.get('transport')
    kwargs['port'] = optional_args.get('port')
    kwargs['verify'] = optional_args.get('verify')
    prev_kwargs.update(kwargs)
    return prev_kwargs