Skip to content

Support route-views sh ip bgp dump #145

Description

@digizeph

Route-views sh ip bgp dump has a slightly different format. https://archive.routeviews.org/oix-route-views

➜  /tmp oneio https://archive.routeviews.org/oix-route-views/2026.07/oix-full-snapshot-2026-07-01-0000.bz2 | head -n 20
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network            Next Hop            Metric LocPrf Weight Path
*  0.0.0.0/0          147.28.0.3               0      0      0 3130 174 i
*  1.0.0.0/24         12.0.1.63                0      0      0 7018 13335 i
*  1.0.0.0/24         37.139.139.17            0      0      0 57866 13335 i
*  1.0.0.0/24         202.232.0.3              0      0      0 2497 13335 i
*  1.0.0.0/24         91.218.184.60            0      0      0 49788 13335 i
*  1.0.0.0/24         129.250.1.71          2001      0      0 2914 13335 i
*  1.0.0.0/24         198.129.33.85          710      0      0 293 13335 i
*  1.0.0.0/24         137.164.16.84            0      0      0 2152 13335 i
*  1.0.0.0/24         162.251.163.2            0      0      0 53767 13335 i
*  1.0.0.0/24         45.61.0.85               0      0      0 22652 13335 i
*  1.0.0.0/24         198.58.198.252           0      0      0 1403 13335 i
*  1.0.0.0/24         89.149.178.10           10      0      0 3257 13335 i
*  1.0.0.0/24         64.71.137.241            0      0      0 6939 13335 i
*  1.0.0.0/24         208.51.134.255           0      0      0 3549 3356 13335 i
*  1.0.0.0/24         217.192.89.50            0      0      0 3303 3356 13335 i

Our parser should be more resilient against such slight differences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions