https://github.com/belwue/bgp_routeinfo
The simplest API for extracting information from BGP we could come up with.
https://github.com/belwue/bgp_routeinfo
hacktoberfest
Last synced: 3 months ago
JSON representation
The simplest API for extracting information from BGP we could come up with.
- Host: GitHub
- URL: https://github.com/belwue/bgp_routeinfo
- Owner: BelWue
- License: mit
- Created: 2022-04-04T13:02:45.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T18:04:21.000Z (about 2 years ago)
- Last Synced: 2024-03-21T03:42:40.095Z (about 1 year ago)
- Topics: hacktoberfest
- Language: Go
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BelWü RouteInfo
This is a small package for extracting route information from BGP sessions.
This is done by directly establishing sessions with a number of peers using
[GoBGP](https://github.com/osrg/gobgp) and abstracting away the more complex
methods.## Getting Started
1. Check out the provided `example_config.yml` and write your own version
2. Configure BGP sessions to your looking glass server. In most cases it
makes sense to run the routeinfo-server as iBGP route-reflector client.
3. Run the API server or use RouteInfo as module in your own software.You can run `cmd/routeinfo_server/main.go` to start a JSON/HTTP API server
and use the files in `lookingglass` to set up a web-frontend that can
query that API server. It is neccessary to edit `config.js`, but
`lookingglass.html` and `style.css` should also be seen as examples and can
be adapted or integrated into an existing website.You can also use this in your own application. There's an example in
`cmd/example`, but it mainly consists of doing a YAML Unmarshal into an empty
RouteInfoServer object and using its `Lookup` methods.