These are chat archives for Exa-Networks/exabgp

15th
Aug 2017
Richard Pijnenburg
@electrical
Aug 15 2017 12:47
Good afternoon all
@thomas-mangin i'm having some troubles setting up an initial test with exabgp. Some examples give a 'group' setting but its complaining its not allowed as a root element. running 4.0.2-1c737d99 with python 3.4.5
Thomas Mangin
@thomas-mangin
Aug 15 2017 13:48
4.0 has a different syntax to 3.4
so you need to look in the etc folder for the latest examples
Richard Pijnenburg
@electrical
Aug 15 2017 13:49
Ahh okay. will do that now :-)
Richard Pijnenburg
@electrical
Aug 15 2017 14:23
Got it mostly working. Got one route as static which gets submitted to bgp and is fine. the one via the healthcheck doesn't show up
Using the run python3 -m exabgp healthcheck
Richard Pijnenburg
@electrical
Aug 15 2017 14:30
Tue, 15 Aug 2017 14:28:16 27585 reactor async | watch-nginx | illegal IP address string passed to inet_pton
@thomas-mangin any idea's?
Thomas Mangin
@thomas-mangin
Aug 15 2017 14:36
sorry, not with so little information ...
sorry, was not enough info no :-)
hope this is a bit better
Running the health check manually works fine
Thomas Mangin
@thomas-mangin
Aug 15 2017 14:42
next-hop is an IP not a range
next-hop 10.226.89.119/32
should be
next-hop 10.226.89.119
Richard Pijnenburg
@electrical
Aug 15 2017 14:43
interesting. its what the healthcheck it self does as i only specify the IP in the process part
--next-hop 10.226.89.119
Thomas Mangin
@thomas-mangin
Aug 15 2017 14:43
ok if you can edit the script to remove the /32 it may just work. The parser was changed with 4.0 .. so it may be that I caused a regression here .
Richard Pijnenburg
@electrical
Aug 15 2017 14:44
Ahh okay
Thomas Mangin
@thomas-mangin
Aug 15 2017 14:44
if it fixes it - I will ping @vincentbernat .. oops - evil me just did :evil:
Richard Pijnenburg
@electrical
Aug 15 2017 14:45
haha :p will have a look now
Richard Pijnenburg
@electrical
Aug 15 2017 14:50
from ipaddress import ip_network as _ip_address it converts any IP address to a network with the arg validation of the healthcheck
next hop always should be an IP address without a /x ?
okay. moving the validation from ip_address to str works
is it correct that it does an announce every x seconds?
every 5 seconds by the looks of it
Richard Pijnenburg
@electrical
Aug 15 2017 15:00
Ah.

Send announces. We announce them on a regular basis in case

we lose connection with a peer.

oops
will have to check with my networking guys to see if this is an issue or not
Thomas Mangin
@thomas-mangin
Aug 15 2017 15:03
Duplicate BGP messages are ignored
@electrical if you have a patch fixing the issue, can you please create a PR ?
Richard Pijnenburg
@electrical
Aug 15 2017 15:04
Don't have a patch yet but will create a PR this week for you
Thomas Mangin
@thomas-mangin
Aug 15 2017 15:04
And sending a BGP update every few seconds is going to no make any CPU difference at all.
Thanks
Richard Pijnenburg
@electrical
Aug 15 2017 15:04
ahh okay. cool :-)
Hmm, fun stuff. brought down the webservice which makes the healthcheck fail and should do a withdraw route but it still is in place
Thomas Mangin
@thomas-mangin
Aug 15 2017 15:35
the healthcheck script does work well, it is used a lot but without info I can tell you why you see that !
this is at least the log part
when i take the webservice down
unfortunately i don't have access to the router it self so have to wait for my network guy to come back from a meeting
Thomas Mangin
@thomas-mangin
Aug 15 2017 15:46
The route is removed
withdraw route 10.226.89.120/32 next-hop 10.226.89.119
And the message to the router to do so also
The UPDATE line