CiscoDevNet / ansible-pyats

Other
46 stars 12 forks source link

Error when parsing output for command: "show running-config vrf {{ vrf }} | sec '^vrf'" #10

Open mattspera opened 4 years ago

mattspera commented 4 years ago

When using the pyats_parse_command Ansible module with the command show running-config vrf {{ vrf }} | sec '^vrf', the following exception is raised:

The full traceback is:
  File "/tmp/ansible_pyats_parse_command_payload_eairedkh/__main__.py", line 92, in main
    parsed_output = device.parse(module.params['command'], output=response)
  File "src/genie/conf/base/device.py", line 552, in genie.conf.base.device.Device.parse
  File "src/genie/conf/base/device.py", line 588, in genie.conf.base.device.Device._get_parser_output

fatal: [switch_1]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "answer": null,
            "command": "show running-config vrf myVRF | sec '^vrf'",
            "prompt": null,
            "sendonly": false
        }
    },
    "msg": "Unable to parse output for command 'show running-config vrf myVRF | sec '^vrf'' (cli() got an unexpected keyword argument 'output')"

I've tested using the identical command with the pyATS/Genie Python library within a Python script and it is able to parse the output successfully.

Model: Cisco Nexus9000 NXOS: version 7.0(3)I7(3)

Ernestas-S commented 4 months ago

Same issue, it is still not working. Example task that tried with: `