A simple API for bgpq4, written in Go.
GET /routeros/addressfamily/ASorAS-SET
GET /routeros/addressfamily/ASorAS-SET?name=myprefixlist
SOURCES = What gets passed to the -S field in bgpq4, default is AFRINIC,APNIC,ARIN,LACNIC,RIPE MATCH_PARENT = If bgpq4 should match parent prefixes, not just the exact route object (enabled by default) LISTEN = What go-irr should listen to (default [::]:8080) CACHE_TIME = How long go-irr should cache prefixes for (default 1 hour)
GET /arista/v4/AS208453
GET /arista/v6/AS208453:AS-SWEHOSTING
# For systems which do not permit ":" in the URI
GET /eos/v4/AS208453_AS-CUST
/arista/
/eos/ # Short version without the prefix list headers
/juniper/
/bird/
/routeros6/
/routeros7/
/brand/v4/
/brand/v6/
- Install docker
- Clone the repo
- Start using docker compose
- go-irr is now reachable via
localhost:8080
docker compose up -d