Example in Python to announce/withdraw route through http API

639 views
Skip to first unread message

Russell Kelly

unread,
Aug 4, 2016, 2:19:58 AM8/4/16
to exabgp-users
Hi all,

I have a program that exabgp is running to fire up the http API.

Now I have another Python script running (not being run by exabgp) and I want to post routes to the http API.

Does anyone have an example of the Python code to announce and withdraw routes using this API? I guess at its most basic imitating a curl command - but maybe there's a more 'programmatic' way of doing this?

Any examples greatly appreciated - having an issue finding a good example. Exa version is 3.4.16

Thanks

Thomas Mangin

unread,
Aug 4, 2016, 2:29:56 AM8/4/16
to exabgp-users
On 3 Aug 2016, at 23:26, Russell Kelly wrote:

> Any examples greatly appreciated - having an issue finding a good
> example. Exa version is 3.4.16

Self replied here:
https://plus.google.com/u/0/118340858819634063000/posts/6Z2QQ4sW8iM

but you can also look into the qa/conf folder what the *.run programs
do.

Thomas

Jeremy Dobbins-Bucklad

unread,
Dec 13, 2016, 12:59:13 PM12/13/16
to exabgp-users
Looks like that link has deprecated.

Thomas Mangin

unread,
Dec 13, 2016, 1:04:40 PM12/13/16
to exabgp...@googlegroups.com
You may need to join the exabgp G+ group to see this link but it works for me.

The only example to follow is:

All the other one are not correctly producing / consuming and will not work in production.

Thomas

On 13 Dec 2016, at 17:58, Jeremy Dobbins-Bucklad <jdobbin...@dyn.com> wrote:

Looks like that link has deprecated.

--
You received this message because you are subscribed to the Google Groups "exabgp-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exabgp-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages