Patrick Seeburger
c3d0d16b48
Fixed a bug in RoutesDumpPerPeerTable()
...
The bug causes an early exit if the filtered routes for a protocol
can not be retrieved.
2019-03-13 09:29:14 +01:00
Patrick Seeburger
3e63268af3
Implement a RunQeue for birdc commands
...
This prevents running the same birdc command multiple times in
parallel.
2019-03-13 09:29:13 +01:00
Patrick Seeburger
ced455ef7b
Cache redesign - Parsed and Meta cache separation
...
* seperate Parsed and Meta cache, so that they may be locked independently
* extend the RunAndParse() function to allow the caller to specify a
callback which will update the Meta cache
* change all methods interacting with the Meta cache to use the
callback for RunAndParse() to update the Meta cache
2019-03-13 09:28:59 +01:00
Patrick Seeburger
980fcff9c2
Changed the data structure for the extended communities to be a single
...
slice of {string, int64, int64} instead of a parsed record.
2019-02-22 14:07:11 +01:00
Patrick Seeburger
95cf1a71af
Fixed a bug in the parser that would return an integer of the wrong type
...
(int vs. int64) in an error case.
2019-02-22 14:07:11 +01:00
Patrick Seeburger
7fd2dfd0cf
Implement new endpoint /routes/count/primary
2019-02-22 14:07:10 +01:00
Patrick Seeburger
541ea6d84d
Fix RoutesDumpPerPeerTable()
...
Fix RoutesDumpPerPeerTable to return results again and the filtered
routes.
2019-02-22 14:07:10 +01:00
Patrick Seeburger
c1a07cc985
Implemented support for parsing extended communities.
2019-02-22 14:07:10 +01:00
Patrick Seeburger
b7952f9061
Fix TestParseProtocolBgp()
...
Fix test method TestParseProtocolBgp() to match the output of the
current ProtocolsBgp() method wich returns Parsed records instead of a
string array.
2019-02-22 14:07:09 +01:00
Patrick Seeburger
08c63fc3a3
Fixed /routes/count/protocol Endpoint which was returning no data,
...
because the wrong parser was called.
2019-02-22 14:07:09 +01:00
Patrick Seeburger
6e8734fa90
Fixed /symbols endpoint.
2019-02-22 14:07:09 +01:00
Johannes Moos
439ee0d5d0
Fix RoutesPrefixed
...
This version ignored the prefix which is passed as an URL parameter.
2019-02-22 14:07:08 +01:00
Patrick Seeburger
b8b9b5d021
Fixed /routes/count/table Endpoint which was returning routes instead of
...
a route count because the wrong method was called.
2019-02-22 14:07:08 +01:00
Patrick Seeburger
4ffebab2c4
Fixed race condition between main() and InstallRateLimitReset().
2019-02-22 14:07:08 +01:00
Patrick Seeburger
27fe2969d7
Avoid unnecessary cache writes in /status
...
Introduce check to avoid unneccesarry cache writes.
2019-02-22 14:07:07 +01:00
Benedikt Rudolph
337e2288e8
Add info on show route command
2019-02-22 14:07:07 +01:00
Benedikt Rudolph
e8cb296397
Add doc on interpretation of route count numbers
...
We hope to clarify with the given examples the semantics of route counts.
2019-02-22 14:07:07 +01:00
Patrick Seeburger
8a69b5ba98
Repair 'protocols' endpoint
...
* repair 'protocols' endpoint to return a meaningful JSON object
* improve example configuration file
2019-02-22 14:07:06 +01:00
Matthias Hannig
712510b3bc
include caching information alongside ttl
2019-02-22 14:07:06 +01:00
Daniel Czerwonk
f82f265612
fixed vendoring
2019-02-22 14:06:37 +01:00
Benedikt Rudolph
ac1c385048
Conclude de-ecixification
2019-02-20 17:27:02 +01:00
Benedikt Rudolph
821a4f869a
Change Go import paths for alice-lg github org
2019-02-20 17:25:57 +01:00
Benedikt Rudolph
a171284a9b
Change URLs to alice-lg github organization
2019-02-20 17:25:57 +01:00
Johannes Moos
ce8e7c437c
Add "routes_peer" module to list in example config
2018-07-18 10:56:32 +02:00
Patrick Seeburger
c1cc320030
Improve caching of parsed birdc output.
...
This additionally caches the results after matching regular
expressions and improves performance further.
Credits: Hasan Pekdemir for the original idea.
2018-07-18 10:53:53 +02:00
Benedikt Rudolph
715deaebb8
Fix quotation error Routes{Table,Lookup}* method
...
The commands submitted to birdc contain "'" characters
placed before and after ip-address/prefix and table
name. In normal operation of birdc they are eliminated
by the shell. However when given as arguments to birdc
directly they cause "IP address expected" error in Bird.
Credits: Felix Singer for finding and submitting this bug.
2018-07-18 10:53:07 +02:00
Benedikt Rudolph
fdfa4cbc32
Generalize parse method to accept all protocols
...
The method parseBgp is now generic enough to parse
all types of protocols.
Added new regular expressions and a more flexible
way of processing route_change statistics that have
subtle differences in each protocol.
2018-07-18 10:43:00 +02:00
Benedikt Rudolph
88eb405c9e
Add comment to explain "-r" argument.
2018-07-18 10:43:00 +02:00
Benedikt Rudolph
1ccbc3d702
Execute birdc in restricted mode with "-r" argument.
2018-07-18 10:42:59 +02:00
Benedikt Rudolph
a89bc7049b
Cleanup
...
Eliminate use of fmt, use log instead.
Fix timestamps in logs.
2018-07-18 10:42:59 +02:00
Benedikt Rudolph
b1f8b2a6d5
Fix enable_tls config option and logger
2018-07-18 10:42:59 +02:00
Hasan Pekdemir
494c54d061
Fix custom logger and add more comments
2018-07-18 10:42:58 +02:00
Benedikt Rudolph
49b3be6c22
make TLS configurable via config file.
...
Add new configuration file options: enable_tls, crt and key.
Add customized logger for unified log outputs.
2018-07-18 10:42:58 +02:00
Hasan Pekdemir
3684712356
Feature: Add TLS support to birdwatcher
...
We use http.ListenAndServeTLS().
2018-07-18 10:42:58 +02:00
Johannes Moos
a196f8ada0
Change default config location to /etc/birdwatcher
2018-07-18 10:42:57 +02:00
Benedikt Rudolph
46356aa9eb
Make cache ttl for bird responses a config option
...
For bird and bird6 you may add ttl to the respective config file sections.
See example config in this commit.
This allows to have individual ttls for the cache of bird cli output per daemon.
2018-07-18 10:42:57 +02:00
Johannes Moos
e4ec6591b9
Increase default cache time to 10 minutes
2018-07-18 10:40:27 +02:00
Benedikt Rudolph
d5de4b8f65
Fix birdc query for RoutesFiltered
2018-06-08 16:37:33 +02:00
Daniel Czerwonk
5bffef1e07
added flag to set max workers
2018-01-28 20:52:53 +01:00
Daniel Czerwonk
d6fc5998ee
implemented workers to improve full table parsing time
2018-01-28 20:41:43 +01:00
Daniel Czerwonk
37d5eeaa13
fxed version check
2018-01-18 18:34:08 +01:00
Daniel Czerwonk
b592b735fd
version bump
2018-01-18 14:32:54 +01:00
Daniel Czerwonk
8b65cb4d66
no all on count
2018-01-18 13:19:42 +01:00
Daniel Czerwonk
86a80878f4
bird 2.0 parsing
2018-01-18 13:00:34 +01:00
Daniel Czerwonk
c710518e9d
added first test for ipv4 with bird 2.x
2018-01-18 09:21:32 +01:00
Daniel Czerwonk
3b1a6d4e4f
implemented iterator to safe some memory (no additional []string with all routes needed)
2018-01-18 08:35:34 +01:00
Daniel Czerwonk
ef6d90c5ed
use net.type only on bird 2.0 and higher
2018-01-18 02:08:30 +01:00
Daniel Czerwonk
f905c9c3de
use reader interface insteead of string copies (decreases memory footprint)
2018-01-18 00:44:22 +01:00
Daniel Czerwonk
68ce3c8422
fixed ipv6 test, added test for local_pref
2018-01-17 23:23:32 +01:00
Daniel Czerwonk
74267b71ce
test refacotring ipv6
2018-01-17 20:05:57 +01:00