ansible-collections / community.network

Ansible Community Network Collection
http://galaxy.ansible.com/community/network
Other
124 stars 89 forks source link

[PR #517/ffdd7c28 backport][stable-5] Missing no-refresh for exos_facts in Interfaces #518

Closed patchback[bot] closed 1 year ago

patchback[bot] commented 1 year ago

This is a backport of PR #517 as merged into main (ffdd7c2844c0e192d77653a95bcf5094d08fbf74).

SUMMARY

Without the change exos_facts return 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

ISSUE TYPE
COMPONENT NAME

exos: exos_facts

ADDITIONAL INFORMATION

You can reproduction of the problem with this task and 'ansible_connection: network_cli':

    - name: Gather all facts
      exos_facts:
        gather_subset:
          - config
          - interfaces

I use the component with EXOS 16.2.5.4, but also face a problem in EXOS 30.5.1.15