Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python or rest API? #2819

Closed
bodleytunes opened this issue Aug 10, 2018 · 2 comments
Closed

python or rest API? #2819

bodleytunes opened this issue Aug 10, 2018 · 2 comments
Labels
question Not a bug

Comments

@bodleytunes
Copy link

bodleytunes commented Aug 10, 2018

Hi,

This isn't an issue, more of a question, but I was wondering if there is a way to control FRR other than from the cli, either via some means like REST, python or unix socket, even bash?

I was hoping to use something like Dpinger to check a link quality by pinging something remotely and then based on a threshold, tell FRR to make a change to IBGP to signal an upstream router to change a next hop. Sort of a poor mans IP SLA.

I have done the same thing using keepaliveD and two vpn tunnels but I wanted to do away with need for tunnels and keep everything local.

May be a daft question, but I thought i'd ask anyway! :)

Cheers!
Jon.

@rzalamena
Copy link
Member

Hi @bodleytunes ,

There is no such thing yet, but here are two suggestions:

  • Short term: use vtysh -c "<command>", but if it is not enough you may write your FRR script of commands to a text file and load it with: vtysh -f <your-frr-script-file>.

  • Long term: the FRR northbound interface is being implemented, the CLI and everything else is going to use it. You will be able to create programming language bindings, create RESTful interfaces to access it or directly access it using configd/yang models. It is still under active development and needs help / testers --> Northbound API #2705 .

The first daemon to get support for this will be ripd.

@bodleytunes
Copy link
Author

bodleytunes commented Aug 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not a bug
Projects
None yet
Development

No branches or pull requests

3 participants