virlfiles / genie_learning_lab

Topology used for Genie learning labs
5 stars 4 forks source link

Failed tests, could not find parser for 'genie.libs.parser.show_bgp.ShowBgpProcessVrfAll' #8

Closed annegentle closed 3 years ago

annegentle commented 4 years ago

In /labs/parsers-with-genie/2.md, ouput after the command robot genie_connect.robot includes this error: ./pyats/lib/python3.6/site-packages/unicon/plugins/nxos/bases.py:22: DeprecationWarning: Arguments 'username', 'enable_password','tacacs_password' and 'line_password' are now deprecated and replaced by 'credentials'. super().init(*args, **kwargs)

Failed tests after robot genie_parsers.robot:

Could not find parser for 'genie.libs.parser.show_bgp.ShowBgpProcessVrfAll'

execute and parse 'show platform' on UUT | FAIL | Could not find parser for 'genie.libs.parser.show_platform.ShowModule'

Genie Parsers | FAIL | 3 critical tests, 1 passed, 2 failed 3 tests total, 1 passed, 2 failed```

syncorpgroup commented 4 years ago

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"
jeaubin commented 3 years ago

Both ways should work but we are officially encouraging everybody to use the show command way.

We will update the learning lab to reflect this.

Thanks for the feedback

danielgraziano commented 3 years ago

Fixed in #9

lubnarasheed commented 3 years ago

Thanks for the fix @danielgraziano

syncorpgroup commented 3 years ago

Thanks for the fix! Kevin H.