1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-16 20:34:42 +01:00
Commit graph

71 commits

Author SHA1 Message Date
tamihiro 5f98a3530c Correctly parse aspath for both bird 1.x and 2.0 2019-03-25 19:39:00 +09:00
Baptiste Jonglez 0e45d90b70 Simplify parsing of 'show protocols' to avoid future breakages
The current parsing method (ugly regexp) is hard to understand and prone
to breakage:

- Bird 1.4 changed the date format, which broke the parser ()
- Bird 2.0 changed the format of the "Table" field, which again broke the parser (#36)

The new method is much simpler, does not involve any regexp, and should
thus resist small syntax changes in Bird's output.

Important limitation: parsing will be messed up if the date contains a
space character.  There is no space in the default date format of Bird
(checked with Bird 1.3 to Bird 2.0), but since the date format is
configurable in Bird, it may happen anyway.  In particular, setting
"timeformat protocol iso long" in Bird will break bird-lg's parser.

Fixes #36
2018-08-22 12:46:21 +02:00
Mehdi ABAAKOUK 5929afb5ec
Merge pull request #28 from loopodoopo/master
fixed SUMMARY_RE_MATCH to work with uptime longer then a day.
2017-10-30 19:15:02 +01:00
Maikel de Boer 53d2000863 fixed SUMMARY_RE_MATCH to work with uptime longer then a day. 2017-10-30 13:17:23 +01:00
Oskar Szafraniec 3f31a86d6a 'NoneType' object has no attribute 'split' 2017-10-26 13:10:08 +02:00
root 93124adf1b fix uptime parsing 2017-09-19 21:15:15 +02:00
Mehdi Abaakouk ed7494b14b fix fmt args 2017-08-16 22:44:23 +02:00
Mehdi Abaakouk 2342607092 Allow get svg 2017-08-16 22:40:07 +02:00
Mehdi Abaakouk 6dfd9f7546 Use base64 for bgpmap 2017-08-16 22:40:07 +02:00
Mehdi ABAAKOUK a849ede683 Merge pull request #13 from rodecker/upstream
peer uptime is either date or time
2016-10-09 07:29:22 +02:00
root f0058c6a41 Add prepend info on graph 2016-03-02 09:46:51 +01:00
Martin Pels 417912fca8 peer uptime is either date or time 2015-09-08 11:54:46 +02:00
Mehdi Abaakouk 6a7bd7f228 Allow configure asn cache expiration 2014-04-20 17:20:52 +02:00
Mehdi Abaakouk 9822e42e25 Add resolv timeout, store asn in memcache 2014-04-20 17:02:22 +02:00
Mehdi Abaakouk af2c305049 Merge remote-tracking branch 'zorun/master' 2014-03-18 14:09:36 +01:00
Mehdi Abaakouk cbdaa9138c Change lg-proxy to lgproxy to easly import it in wsgi part2 2014-02-18 11:57:44 +01:00
Baptiste Jonglez ffafef27cd Allow to configure the bind address of bird-lg 2014-02-12 22:09:09 +01:00
Baptiste Jonglez fe4e8caf2f Fix bgpmap (Graphviz does not seem to like empty labels) 2014-01-28 15:49:15 +01:00
Baptiste Jonglez e557dd651b Catch possible exceptions thrown by the ASN DNS resolver 2014-01-28 15:49:15 +01:00
Baptiste Jonglez 2418d13d07 Add support for configuring the DNS-based ASN → name mapping service. 2014-01-28 15:49:15 +01:00
Baptiste Jonglez ca7eb2b9ac Add support for a configurable whois server 2014-01-28 15:46:27 +01:00
Mehdi Abaakouk 298b1459fa Handle error correctly 2012-10-17 16:33:02 +02:00
Mehdi Abaakouk 6311df95e8 Rewrite the way that user input is handled 2012-10-17 16:17:52 +02:00
Mehdi Abaakouk 5bb5d42d0f Fix index error in last commit 2012-10-17 11:36:36 +02:00
Mehdi Abaakouk c22e73c7f8 Fix error when sanitized have only 1 argument 2012-10-17 11:32:33 +02:00
Mehdi Abaakouk 8419152668 Fix issue #2 2012-10-16 08:07:30 +02:00
Mehdi Abaakouk b593b0cfb7 escape some string 2012-10-16 08:01:10 +02:00
Mehdi Abaakouk 17d11c0ec4 Add logging system 2012-08-21 11:12:58 +02:00
Mehdi Abaakouk ea5563fe81 Move debug boolean to configuration file 2012-08-21 09:21:14 +02:00
Mehdi Abaakouk 725b8d3a3d basic caracter escape for pydot html label 2012-07-27 23:12:11 +02:00
Mehdi Abaakouk af5faf98c1 fix incorrect var name 2012-07-20 17:52:06 +02:00
Mehdi Abaakouk 3905d7d0ac Remove duplicate label on a edge 2012-07-19 17:28:32 +02:00
Mehdi Abaakouk 63a6f32d5f Use service cymru.com service instead of whois 2012-07-18 23:46:44 +02:00
Mehdi Abaakouk d148daf4e2 Fix exception when bgpmap can not be generated 2012-07-16 08:09:17 +02:00
Mehdi Abaakouk 3ea5e3d0b8 Fix ipv6 re expression 2012-05-30 09:35:03 +02:00
Mehdi Abaakouk e64568a40c Improve graph 2012-05-30 09:28:07 +02:00
Mehdi Abaakouk 1e08b5379e Improve graph 2012-05-30 09:16:58 +02:00
Mehdi Abaakouk d93994e064 Use random color for graph 2012-05-29 17:05:12 +02:00
Mehdi Abaakouk 4da3d5e02c Improve bgpmap png 2012-05-29 16:53:19 +02:00
Mehdi Abaakouk 105d5f16ac Catch 'ASName' in whois answer 2012-05-28 18:19:19 +02:00
Mehdi Abaakouk 1a105698c5 Add AS name persistant cache and reenable it 2012-05-28 13:51:16 +02:00
Mehdi Abaakouk 820e3860ef remove temporaly as name 2012-05-27 14:52:51 +02:00
Mehdi Abaakouk 2a15a0cfc3 Add BGPmaps 2012-05-27 14:30:31 +02:00
Mehdi Abaakouk eb4f4f52b3 Remove inused import and ignore bytecode 2012-05-07 11:17:43 +02:00
Mehdi Abaakouk d01dd9ac1e Add progress bar 2012-02-08 22:05:28 +01:00
Mehdi Abaakouk d29ccc9290 Rebuild UI with bootstrap 2012-02-05 14:30:32 +01:00
Mehdi Abaakouk 4cdb730b59 Add copyright header 2012-01-27 19:12:59 +01:00
Mehdi Abaakouk d81b45da6e Add error message for empty argument 2012-01-27 11:32:50 +01:00
Mehdi Abaakouk 0549b361a9 Fix adv show route 2012-01-27 00:22:30 +01:00
Mehdi Abaakouk da0b3bc565 Improve ipv6 detection 2012-01-27 00:17:11 +01:00