genielibs icon indicating copy to clipboard operation
genielibs copied to clipboard

IOSXR learn BGP key error

Open Kani999 opened this issue 3 years ago • 0 comments

I've run into the issue with the following command

genie learn bgp --testbed-file testbed.yaml devices IOSXR_DEV

Genie output

Issue while building the feature

Traceback (most recent call last):
  File "src/genie/cli/commands/learn.py", line 365, in genie.cli.commands.learn.LearnCommand._retrieve_ops
  File "/home/jankrupa/.local/lib/python3.8/site-packages/genie/libs/ops/bgp/iosxr/bgp.py", line 546, in learn
    self.make()
  File "/home/jankrupa/.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 272, in genie.metaparser._metaparser.MetaParser.parse
  File "/home/jankrupa/.local/lib/python3.8/site-packages/genie/libs/parser/iosxr/show_bgp.py", line 4285, in cli
    sub_dict['advertised'][prefix]['index'][index]['path'] = path
KeyError: 'advertised'

Kani999 avatar Oct 12 '21 12:10 Kani999