Skip to content

Commit

Permalink
Missing no-refresh for exos_facts in Interfaces (#517)
Browse files Browse the repository at this point in the history
* missing no-refresh for exos_facts in Interfaces

* exos_fixtures: rename show_port_config

---------

Co-authored-by: Pavel Lazukin <[email protected]>
  • Loading branch information
plazukin and Pavel Lazukin authored Feb 13, 2023
1 parent 1c0af2b commit ffdd7c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bugfixes:
- exos_facts - returns timeout error when we use connection type ``network_cli``.
It happened because we send command without ``no-refresh`` and script ``cli2json.py`` stuck in loop while reading console output (https://github.com/ansible-collections/community.network/pull/517).
2 changes: 1 addition & 1 deletion plugins/module_utils/network/exos/facts/legacy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Interfaces(FactsBase):

COMMANDS = [
'show switch',
{'command': 'show port config', 'output': 'json'},
{'command': 'show port config no-refresh', 'output': 'json'},
{'command': 'show port description', 'output': 'json'},
{'command': 'show vlan detail', 'output': 'json'},
{'command': 'show lldp neighbors', 'output': 'json'}
Expand Down

0 comments on commit ffdd7c2

Please sign in to comment.