Robert Raszuk wrote on 25/04/2021 16:08:
Would you allow to query yr router via such API to anyone in the world ?
That's a policy decision for the operator. In practice, we expose some
bits of the API to the public, but other parts are kept private. For
example, here's a list of bgp peers from one device:
https://www.inex.ie/ixp/api/v4/lg/rc1-lan1-ipv6/bgp-summary
However, the API RIB export is disallowed except from internal hosts.
The API front-end handler caches all data, but by presenting credentials
or specific privileges, you can do live queries. The data freshness is
noted in the data feed.
The point of this is not the specific data model that's used here
(because we know it has limitations), but rather suggesting this as an
generalised approach to how this could be done in a way which was
flexible enough for general consumption.
Nick
_______________________________________________
GROW mailing list
GROW@ietf.org
https://www.ietf.org/mailman/listinfo/grow