bgp / stayrtr

RPKI-To-Router server implementation in Go
BSD 3-Clause "New" or "Revised" License
91 stars 13 forks source link

VRP export stuff probably has the wrong time format #61

Closed randomthingsandstuff closed 1 year ago

randomthingsandstuff commented 2 years ago

I forgot to add a lil JSON encoding thing to this to convert it back to UNIX time.

benjojo commented 1 year ago
root@stayrtr-test:~# curl localhost:9847/rpki.json | jq . | grep expires -A 10 -B 10 | head -n 100
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34.2M    0 34.2M    0     0  30.6M      0 --:--:--  0:00:01 --:--:-- 30.6M
  "metadata": {
    "vrps": 401582,
    "buildtime": "2023-02-21T22:11:40Z"
  },
  "roas": [
    {
      "prefix": "1.0.0.0/24",
      "maxLength": 24,
      "asn": 13335,
      "ta": "apnic",
      "expires": 1677507513
    },
    {
      "prefix": "1.0.4.0/24",
      "maxLength": 24,
      "asn": 38803,
      "ta": "apnic",
      "expires": 1677542144
    },

seems fine