These are chat archives for Exa-Networks/exabgp

6th
Nov 2017
Rens Houben
@kaosdrachen
Nov 06 2017 10:13
Question about the 3.4 API - I've got the basic communication /to/ the server working, and I'm even correctly receiving the responses on stdin, but how does exabgp communicate that it has finished responding to a given command?
Rens Houben
@kaosdrachen
Nov 06 2017 10:20

To illustrate, here's the script: https://paste.pound-python.org/show/Gqh1ZsqfkT21YJHDPRRf/

Response in syslog is:

Nov 06 11:07:31 monitor /http_api.py[29513]: Response: <neighbor 172.16.80.121 10.10.10.1/32 next-hop 172.16.80.123>
Nov 06 11:07:31 monitor /http_api.py[29513]: Response: <neighbor 172.16.80.122 10.10.10.1/32 next-hop 172.16.80.123>
But I can't seem to find a way for the script to realize it's done receiving response and send the information back to the client.
Thomas Mangin
@thomas-mangin
Nov 06 2017 10:23
From memory on 3.4 it does not answer command but the ones which need data back.
4.0 acks command
Rens Houben
@kaosdrachen
Nov 06 2017 10:43
Yeah, I just noticed that in the source code. And 4.0 isn't in debian stable yet.
Time to look at backports.
...Backport is 3.4.17
Time to look at building the package in a jessie test box.
Rens Houben
@kaosdrachen
Nov 06 2017 10:51
Well, those built fine.
Thomas Mangin
@thomas-mangin
Nov 06 2017 10:51
You may want to look at the debian folder on master on how to build .deb from the latest version
Rens Houben
@kaosdrachen
Nov 06 2017 11:08
Already done. Installing them now.
Rens Houben
@kaosdrachen
Nov 06 2017 11:15
... And of course the config file format has changed. Right, back to documentation...
Rens Houben
@kaosdrachen
Nov 06 2017 12:09
... Okay, got it, but now the api keeps insisting it doesn't know what the command "show routes" means.
... Another question: I'm looking for the configuration option that will let me specify where the in and out named pipes should be created, since I'm allergic to using /var/run/ without a subdirectory.
Rens Houben
@kaosdrachen
Nov 06 2017 12:49
... Apparently 4.0 does not currently have 'show routes' in its api anymore? show neighbors summary at least works
Rens Houben
@kaosdrachen
Nov 06 2017 13:40
.. Yep, looks like the api isn't anywhere near finished.
digitalpilotnm
@digitalpilotnm
Nov 06 2017 13:43
Can I ask a dumb newbie question here :) I'm trying to use exabgp as a route server to inject routes into my network. When I set the next hop to the peers router's address, junos is rejecting the route and not inserting it.
for example: route 1.2.3.0/27 next-hop 10.0.0.1 community [1234:4321]
What I'm trying to do is insert a more specific route with some community tags so that the more specific get announced to just my peers and not transit. i already have the policy logic working on the peer/transit neighbors in the junos
Thomas Mangin
@thomas-mangin
Nov 06 2017 20:32
under junos you can use “hidden” when looking at route to find non-selected routes if I recall correctly
show .. hidden
it should help ..
digitalpilotnm
@digitalpilotnm
Nov 06 2017 22:05
Yes, I see the routes when I do hidden. Junos is rejecting it because they say the next-hop is invalid
jethrogb
@jethrogb
Nov 06 2017 22:35
what command do I run to see the current routes?