05-14-2019 12:57 AM
Hi all,
yesterday I did the mentioned LAB and I was struggeling with the parsers part - unfortunately this was the most important one at the moment
(pyats) [developer@devbox genie_learning_lab]$ robot genie_parsers.robot
==============================================================================
Genie Parsers
==============================================================================
connect to UUT device | PASS |
------------------------------------------------------------------------------
execute and parse 'show platform' on UUT | FAIL |
Could not find parser for 'genie.libs.parser.show_platform.ShowModule'
------------------------------------------------------------------------------
Genie Parsers | FAIL |
2 critical tests, 1 passed, 1 failed
2 tests total, 1 passed, 1 failed
==============================================================================
Output: /home/developer/genie_learning_lab/output.xml
Log: /home/developer/genie_learning_lab/log.html
Report: /home/developer/genie_learning_lab/report.html
(pyats) [developer@devbox genie_learning_lab]$
There are two parser in this scenario - I removed the first one but the second didn't work as well
Any idea or working example ?
Thanks
Maik
09-24-2020 11:44 PM
Hi Maik,
I had the same issue, but I did a workaround. Replace the following sentences in your genie_parsers.robot file. But... I would like to know if exist that particular way to call genie parse command with direct access to the library.
execute and parse 'show bgp process vrf all' on UUT
# parse "genie.libs.parser.show_bgp.ShowBgpProcessVrfAll" on device "uut"
parse "show bgp process vrf all" on device "uut"
...
execute and parse 'show platform' on UUT
# parse "genie.libs.parser.show_platform.ShowModule" on device "uut"
parse "show module" on device "uut"
09-29-2020 04:02 AM
Hi,
it's really a long time ago - which lab was this ? I have to get again familiar with this topic ...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide