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

Error parsing RIPE MRT data #26

Closed
nkukard opened this issue Nov 11, 2020 · 2 comments
Closed

Error parsing RIPE MRT data #26

nkukard opened this issue Nov 11, 2020 · 2 comments
Assignees
Labels

Comments

@nkukard
Copy link

nkukard commented Nov 11, 2020

I must be doing something wrong, I'm using the latest git checkout.

I am trying to pull out all the Cogent routing information for AS174...

wget http://data.ris.ripe.net/rrc00/2020.11/bview.20201101.0000.gz
examples/mrt2exabgp.py -p 174 -s -A bview.20201111.0000.gz

The error I'm getting is this...

$ examples/mrt2exabgp.py -p 174 -s -A bview.20201111.0000.gz
Traceback (most recent call last):
  File "examples/mrt2exabgp.py", line 514, in <module>
    main()
  File "examples/mrt2exabgp.py", line 511, in main
    conv_format(args, flags, d)
  File "examples/mrt2exabgp.py", line 185, in conv_format
    print_route_td(args, params, m.data)
  File "examples/mrt2exabgp.py", line 250, in print_route_td
    line += get_bgp_attr(args, params, m, attr)
  File "examples/mrt2exabgp.py", line 397, in get_bgp_attr
    path_seg = attr['as_path'][0]
KeyError: 'as_path'

Any help would be greatly appreciated!

@t2mune t2mune self-assigned this Nov 11, 2020
@t2mune t2mune added the bug label Nov 11, 2020
@t2mune
Copy link
Owner

t2mune commented Nov 11, 2020

Hi,

Thank you for reporting this issue.
I fixed it, so could you try again?
9c545fe

"mrt2exabgp.py" convert only first entry for each prefix by default, so it's better to specify the "-a" option.

examples/mrt2exabgp.py -a -p 174 -s -A bview.20201111.0000.gz

@nkukard
Copy link
Author

nkukard commented Nov 11, 2020

Confirmed working, thanks for the great work man!

@t2mune t2mune closed this as completed Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants