IOS XR Parser for ISIS (ShowIsis)
See original GitHub issueGenie generate error due a missing keys.
`Issue while parsing: <class 'genie.libs.parser.iosxr.show_isis.ShowIsis'>
Traceback (most recent call last):
File "src/genie/cli/commands/learn.py", line 343, in genie.cli.commands.learn.LearnCommand._retrieve_ops
File "/home/mpls/fipo/lib64/python3.6/site-packages/genie/libs/ops/isis/iosxr/isis.py", line 313, in learn
self.make()
File "/home/mpls/fipo/lib64/python3.6/site-packages/genie/ops/base/base.py", line 101, in make
self.maker.make(*args, **kwargs)
File "src/genie/ops/base/maker.py", line 312, in genie.ops.base.maker.Maker.make
File "src/genie/ops/base/maker.py", line 418, in genie.ops.base.maker.Maker._call_parser
File "src/genie/metaparser/_metaparser.py", line 302, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/_metaparser.py", line 284, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/util/schemaengine.py", line 405, in genie.metaparser.util.schemaengine.Schema.validate
genie.metaparser.util.exceptions.SchemaMissingKeyError: Missing keys: [['instance', 'core', 'vrf', 'default', 'topology', 'IPv4 Unicast', 'vrf', 'default', 'protocols_redistributed']]`
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
genieparser/show_isis.py at master - GitHub
IOSXR parsers for the following show commands: * show isis. * show isis lsp-log. * show isis spf-log. * show isis protocol. *...
Read more >Cisco IOS IP Routing: ISIS Command Reference
Enables the IS-IS routing protocol and specifies an IS-IS process. show isis topology. Displays a list of all connected routers in all areas....
Read more >cisco_xr_show_isis_database_v...
Template to parse ISIS LSDB of Cisco IOS-XR devices out of "show isis database verbose" command output. This template produces this structure:.
Read more >BRKRST-2315.pdf - Cisco Live
Configuring NET: NX-OS, IOS-[XR|XE] router isis 1 net 00.0000.0000.0001.00. RP/0/0/CPU0:XR1# show isis protocol. IS-IS Router: 1. System Id: 0000.0000.0001.
Read more >'OR' Record on TextFSM ISIS Database IOS XR - Stack Overflow
I am writing a TextFSM template for command "show isis database detail" on an IOS XR box. However I am having trouble to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @filippohronsky,
Sorry for the late reply, and thanks for providing the supporting information. A small tweak in the schema of this parser will fix your issue. The key called ;
Can be changed to be an optional key. You should see other keys with similar behavior in the code. It should be around line 496 of show_isis.py file in the iosxr directory. Feel free to submit a PR if this change works for you, and if it doesn’t please let me know.
Thank you, Abdurahman
Hi @ahersi2-cisco, here is also output of
show isis
command. In genieparser there is mention about vrf, but show isis command isn’t include that information.Parser: genieparser/src/genie/libs/parser/iosxr/show_isis.py
Hopefully, it was helpful.