Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

genie.metaparser.util.exceptions.SchemaMissingKeyError: Missing keys: [['protocols', 'ospf', 'vrf', 'default', 'address_family', 'ipv4', 'instance', '32', 'incoming_filter_list']] #35

Closed
doug1as opened this issue Nov 13, 2020 · 4 comments
Assignees

Comments

@doug1as
Copy link

doug1as commented Nov 13, 2020

I'm trying to learn ospf feature but in some routers i had this error:

Issue while parsing: <class 'genie.libs.parser.iosxe.show_protocols.ShowIpProtocols'>

Traceback (most recent call last):
File "src/genie/cli/commands/learn.py", line 365, in genie.cli.commands.learn.LearnCommand._retrieve_ops
File "/home/douglas.rodrigues/.local/lib/python3.8/site-packages/genie/libs/ops/ospf/iosxe/ospf.py", line 1017, in learn
self.make(final_call=True)
File "/home/douglas.rodrigues/.local/lib/python3.8/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 303, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/_metaparser.py", line 285, in genie.metaparser._metaparser.MetaParser.parse
File "src/genie/metaparser/util/schemaengine.py", line 404, in genie.metaparser.util.schemaengine.Schema.validate
genie.metaparser.util.exceptions.SchemaMissingKeyError: Missing keys: [['protocols', 'ospf', 'vrf', 'default', 'address_family', 'ipv4', 'instance', '32', 'incoming_filter_list']]

in the line "Issue while parsing", it's referencing iosxe, but i has this same issue on ios and iosxe routers (some routers, not all)

@badalsoyantar
Copy link

Hi Can you share device output to pyats-support-ext@cisco.com it seems parser issue.

@doug1as
Copy link
Author

doug1as commented Nov 17, 2020

Hi @badalsoyantar, what kind of output do you need ?
All files generated of "genie learn" command ?

@doug1as
Copy link
Author

doug1as commented Nov 17, 2020

@badalsoyantar, i sended now all files generated by "genie learn" command for pyats-support-ext@cisco.com ...

Regards !

@badalsoyantar
Copy link

badalsoyantar commented Nov 17, 2020

Hello @doug1as It was optional key issue and is fixed. I will ping you once beta package is released for you.
'outgoing_filter_list' and 'incoming_filter_list' is Optional in your case.
https://github.com/CiscoTestAutomation/genieparser/blob/master/src/genie/libs/parser/iosxe/show_protocols.py#L155

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants