From c4aad0370470ca2865d67f03c6084f59dbb5ef63 Mon Sep 17 00:00:00 2001 From: Pavel Lazukin Date: Wed, 1 Feb 2023 12:54:30 +0300 Subject: [PATCH] missing no-refresh for exos_facts in Interfaces --- .../fragments/517-add-ports-no-refresh-in-exos-facts.yaml | 3 +++ plugins/module_utils/network/exos/facts/legacy/base.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/517-add-ports-no-refresh-in-exos-facts.yaml diff --git a/changelogs/fragments/517-add-ports-no-refresh-in-exos-facts.yaml b/changelogs/fragments/517-add-ports-no-refresh-in-exos-facts.yaml new file mode 100644 index 00000000..c81e677c --- /dev/null +++ b/changelogs/fragments/517-add-ports-no-refresh-in-exos-facts.yaml @@ -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). diff --git a/plugins/module_utils/network/exos/facts/legacy/base.py b/plugins/module_utils/network/exos/facts/legacy/base.py index 5c0bf20b..690b8a87 100644 --- a/plugins/module_utils/network/exos/facts/legacy/base.py +++ b/plugins/module_utils/network/exos/facts/legacy/base.py @@ -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'}