Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I'm getting error ('Parser Output is empty',) when the command specifies the address family (ipv4,ipv6, vpnv4, etc)- show bgp {address-family}- show bgp vrf {vrf} {address-family}Below my code:def get_bgp_routing_table(host, username, password, vrf=...
Yes. It's clear that whenever an address family is added to the command, the parser fails. After digging further a little bit, I found a more specific Genie parser function can be used for IOS XR: ShowBgpVrfit's in genieparser module in src/genie/lib...
Thank you!I just added a small adjustment on your code: if output:
print(f"Parsing successful for command {command}")
break Then I tried with two input commands:1) show bgp vrf lab Results:At...
It's an IOS XR NCS5500 device.When the command is "show bgp vrf {vrf} ipv4 unicast" the parsing fails. It's the same for other address families. When it's omitted like for "show bgp vrf {vrf}" the parsing is successful. Although the two commands give...