Closed sjhloco closed 5 years ago
There must be a bug in the genie parsing library as it worked for me on 19.4.0, but not on the latest 19.7.1. Cisco maintains this library. You will need to open an issue on that project (https://github.com/CiscoTestAutomation/genieparser)
This works for me on the following version:
genie==19.4.0
genie.abstract==19.4.0
genie.conf==19.4.0
genie.examples==19.4.0
genie.harness==19.4.0
genie.libs.conf==19.4.0
genie.libs.filetransferutils==19.4.0
genie.libs.ops==19.4.0
genie.libs.parser==19.4.0
genie.libs.sdk==19.4.0
genie.libs.telemetry==19.4.0
genie.metaparser==19.4.0
genie.ops==19.4.0
genie.parsergen==19.4.0
genie.predcore==19.4.0
genie.telemetry==19.4.0
genie.trafficgen==19.4.0
genie.utils==19.4.0
but fails on the later genie versions:
genie==19.7.1
genie.abstract==19.7
genie.conf==19.7.2
genie.examples==19.4.0
genie.harness==19.7.2
genie.libs.conf==19.7
genie.libs.filetransferutils==19.7
genie.libs.ops==19.7
genie.libs.parser==19.7
genie.libs.sdk==19.7
genie.libs.telemetry==19.7
genie.metaparser==19.7
genie.ops==19.7
genie.parsergen==19.7
genie.predcore==19.7
genie.telemetry==19.7
genie.trafficgen==19.7.1
genie.utils==19.7
Thank you for reporting the issue. We will look into it.
It will be followed up here: https://github.com/CiscoTestAutomation/genieparser/issues/30 Thanks,
Hi @sjhloco
I'm from pyATS/Genie team. We've release Genie v19.8 with this parser fix. Please upgrade Genie package by below either way and see if it works.
Genie all package upgrade:
pip install genie --upgrade
only genie.libs.parser upgrade:
pip install genie.libs.parser --upgrade
Hey tahigash,
Tested it and works a treat. Thanks for getting it fixed so fast.
Hi tahigash,
I am trying show bgp summary command with genie parser and it's failing TASK [debug] *** fatal: [sbx-iosxr-mgmt.cisco.com]: FAILED! => {"msg": "parse_genie: Parser Output is empty - Failed to parse command output."}
I am using Genie ver 20.6.0
I
@niks202020 please make sure show command returned any neighbour. If no neighbour, it's expected. If you see neighbours in output, please send the issue with log(output) to pyats-support-ext(at)cisco.com. We will look into this further.
I get the error _"msg": "genieparse: local variable 'cmd' referenced before assignment - Failed to parse command output." when trying to use this parser on an IOSXE device.
The playbook works fine with other cmds such as "show bgp all", also confirmed that the parser works fine using "genie parse "show bgp all summary" --testbed-file testbed.yaml --devices "DC1-CSR-XNET1"" against the same device.
Ansible version and playbook book:
Device output, is on a CSR1000v version 16.06.02:
Thanks