95 Commits

Author SHA1 Message Date
Simon Marsh
4b4723b958
Prevent 4-byte AS capability from being treated like it is ASN
Sileht pull request #50
https://github.com/sileht/bird-lg/pull/50/files
2019-06-22 22:55:01 +01:00
Simon Marsh
08c1d47e64
Correct AS path prepend count in bgpmap
(Sileht pull request #53)
https://github.com/sileht/bird-lg/pull/53/files
2019-06-22 22:52:38 +01:00
Simon Marsh
7c27c84887 Merge branch 'master' into burble-clean 2019-06-22 22:35:25 +01:00
Simon Marsh
1967bebab7
rework bgpmap parsing so it is bird1 and bird2 compatible 2019-05-15 12:29:20 +01:00
Simon Marsh
0de6a8cfaa
Additional minor fixes when using 'all' 2019-05-15 08:46:41 +01:00
Zhaofeng Li
594088be69
Merge Zhaofeng's updates to go from python2 to python3 and fix bgpmap funtionality. 2019-05-14 20:56:38 +01:00
Simon Marsh
f66e26cd6e
Remove tabs in lg.py 2019-05-14 12:00:20 +01:00
Simon Marsh
06a3265278
Merge branch 'master' into burble-clean 2019-05-13 20:51:16 +01:00
Alarig Le Lay
50b1f1387e Applying patch from @fduraffourg that fixes #9 2019-04-12 19:34:07 +02:00
TimStallard
a2d31a3a6c
remove use of proto_default in routes, handled by bird/traceroute functions now 2019-01-30 18:34:46 +00:00
TimStallard
eb91179101
Use traceroute/traceroute6 as required, added config option to allow disabling traceroute6 for IPv4-only nodes 2019-01-30 18:33:10 +00:00
TimStallard
1f4d9423a9
Fix handling of non-ascii chars in bird output 2019-01-30 18:32:16 +00:00
TimStallard
429bfbde3f
Exclude direct protocols 2019-01-28 00:21:43 +00:00
TimStallard
1b68bf7a18
Improved unified IPv4/6 support, also allows setting default 2019-01-27 23:44:24 +00:00
TimStallard
3c76d1679f
Made all hosts available at /all, much shorter URLs when using many hosts 2019-01-27 23:42:16 +00:00
TimStallard
49ab7b003b
Fix for internal routes via unselected hosts 2019-01-27 19:56:17 +00:00
TimStallard
cfaf39bac7
Better bgpmap handling for internal routes 2019-01-27 15:37:42 +00:00
TimStallard
4be9730746
Exclude BFD protos 2019-01-27 15:36:01 +00:00
TimStallard
452fd637b3
Allow for old style configs 2019-01-27 15:35:22 +00:00
Simon Marsh
da571f9250 Add a timeout to lgproxy operations.
The timeout can help prevent a single, misbehaving server from blocking the page load.
2019-01-12 13:17:57 +00:00
Simon Marsh
aff65c0f6e - Fix bgpmap for bird2.
- Allow for having no ASN mapping service
- Remove trailing | when no ASN info is found
2019-01-12 12:49:31 +00:00
Simon Marsh
a9ce70b061 Fix protocol summary view when 'timeformat protocol iso long' is configured.
'timeformat protocol iso long' is a requirement for using bird_exporter with prometheus.
2019-01-12 12:45:44 +00:00
Zhaofeng Li
ddf86d02fb Add support for unified Bird daemons
Bird 2.0 includes IPv4 and IPv6 support in a single daemon.
When UNIFIED_DAEMON is set to True, queries are always done with the
"ipv4" backend (which handles both protocols), and distinctions between
IPv4 and IPv4 are removed in the UI.
2019-01-11 21:14:12 +00:00
Zhaofeng Li
0350ff6922 Simplify proxy host configuration 2019-01-11 21:12:18 +00:00
Baptiste Jonglez
e60cb8027c 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
2019-01-11 21:11:51 +00: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