Include BGP prefix information in details documents

Use case:

  • find relays in the same prefix (for example if a specific prefix has been hijacked)
  • group relays by prefix
  • is a requirement fore routing security related metrics (ROA, prefix length)

The RIPEstat API can be used as a source and you can cache it if previous lookups were within the same /24 (IPv4) or /48 (IPv6) since that is the longest prefix length https://stat.ripe.net/docs/data_api#NetworkInfo example: https://stat.ripe.net/data/network-info/data.json?resource=140.78.90.50

related: legacy/trac#26585 (moved)