On 2023-02-26 12:02, Bhanu Priya Bhardwaj via dev wrote:
Subject:
Implementation for FRR C based APIs
From:
Bhanu Priya Bhardwaj <bhanu.bhardwaj@hsc.com>
Date:
2023-02-26, 12:02
To:
"dev@lists.frrouting.org" <dev@lists.frrouting.org>

The intent of this mail is to use FRR APIs programmatically. We have C as the existing code base. Please suggest how we can integrate FRR APIs into our code.

 


You may not think of them like Internet APIs, but there is a kind of tightly bound library access to FRR:
https://docs.frrouting.org/projects/dev-guide/en/latest/library.html

FRR does have some hooks for customization.  It also has a Lua scripting interface:
https://docs.frrouting.org/projects/dev-guide/en/latest/scripting.html

There is an ability to add your own callback hooks, command line additions, ... and other stuff.

Link State API
https://docs.frrouting.org/projects/dev-guide/en/latest/link-state.html

Northbound API
https://docs.frrouting.org/projects/dev-guide/en/latest/northbound/northbound.html

Zebra Neighbor API
https://docs.frrouting.org/projects/dev-guide/en/latest/zebra-neigh-api.html

Mind you, all this access probably requires you have the FRR source code open, but given the complexity of the daemons and networking in general, this access is probably as close to API as possible.

I'm not an FRR developer, just a satisfied user with a programming bent.

Raymond Burkholder
https://blog.raymond.burkholder.net/