mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
Add timeout option for nxapi (#18074)
* Changes to be committed: modified: lib/ansible/module_utils/nxos.py - added configurable timeout to module paramaters modified: lib/ansible/utils/module_docs_fragments/nxos.py - added documentation for timeout * Changes to be committed: modified: ansible/module_utils/nxos.py - added timeout option for nxapi transport and added documentation - option works with CLI or NXAPI transport * Changes to be committed: modified: lib/ansible/utils/module_docs_fragments/nxos.py - Changed per comments in PR 18074 * Changes to be committed: modified: lib/ansible/module_utils/nxos.py - added try/except block to test for timeout * Changes to be committed: modified: lib/ansible/module_utils/nxos.py - tweaked timeout
This commit is contained in:
parent
333f6d447b
commit
b7e6ace4ee
2 changed files with 10 additions and 2 deletions
|
@ -73,6 +73,13 @@ options:
|
|||
required: false
|
||||
default: no
|
||||
choices: ['yes', 'no']
|
||||
timeout:
|
||||
description:
|
||||
- Specifies idle timeout in seconds. NX-API can be slow to
|
||||
return on long-running commands (sh mac, sh bgp, etc).
|
||||
required: false
|
||||
default: 10
|
||||
version_added: 2.3
|
||||
provider:
|
||||
description:
|
||||
- Convenience method that allows all I(nxos) arguments to be passed as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue