Matthias Hannig
837c97da13
prefix cache key for use with birdc and birdc6
2019-01-24 19:01:41 +01:00
Matthias Hannig
1ee6740688
improved caching tests
2019-01-24 19:01:05 +01:00
Matthias Hannig
15f2561c87
use redis cache if configured
2019-01-24 17:16:35 +01:00
Matthias Hannig
52f5e9506a
use redis caching when available
2019-01-24 17:15:54 +01:00
Matthias Hannig
1518f64cd4
added redis cache helper
2019-01-24 17:15:26 +01:00
Patrick Seeburger
c4dfeb253d
API redesign - make birdwatcher more generic
...
Removed all high level functionality e.g. endpoints with multiple
invocations of birdc.
Add new endpoints which are required to duplicate the removed
functionality within Alice-LG.
2019-01-18 18:10:06 +01:00
Matthias Hannig
2a17304682
fixed command syntax
2018-11-29 15:28:00 +01: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
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
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
Daniel Czerwonk
258f356e1d
more attributes tested
2018-01-17 20:00:33 +01:00
Daniel Czerwonk
c20964cf0e
refacoting, increased test coverage, tests for ipv6 and bird2
2018-01-17 19:41:55 +01:00
Daniel Czerwonk
7905610b51
added tests for ipv6
2018-01-16 00:12:50 +01:00
Daniel Czerwonk
d903f1286b
refactoring, channel support for show protocols, routees filtered by ip version
2018-01-15 23:04:19 +01:00
Daniel Czerwonk
654e131a75
go dep
2018-01-15 19:04:38 +01:00
Matthias Hannig
fa5b640aab
fixed interface conversion issue
2017-07-13 12:16:53 +02:00
Matthias Hannig
ddc22da4a4
fixed naming
2017-06-22 19:01:05 +02:00
Matthias Hannig
afd39c4d9a
fixed import export naming
2017-06-22 18:48:22 +02:00
Matthias Hannig
941ac9ceba
added per peer table filtered routes dump
2017-06-22 16:08:37 +02:00
Matthias Hannig
b96a864b04
added test for routes parsing
2017-06-22 15:38:18 +02:00
Matthias Hannig
92dc24e764
fixed subsequent routes parsing
2017-06-22 15:38:06 +02:00
Matthias Hannig
56141bb10f
added routes dumping
2017-06-22 15:06:54 +02:00
Matthias Hannig
6fa06ec094
fixed typo
2017-05-29 10:15:47 +02:00
Matthias Hannig
36b9bb03d2
moved to parser config and updated RoutesNoExport
2017-05-29 09:50:38 +02:00
Matthias Hannig
007436ebc2
moved to parser config
2017-05-29 09:34:38 +02:00
Matthias Hannig
e463a05cd0
added config option for per peer table setups
2017-05-29 09:31:47 +02:00
hellerve
58bb10469c
added graceful error handling if bird is unreachable
2017-05-02 12:36:35 +02:00
Matthias Hannig
7da71225be
added more flexibility to routes parsing
2017-04-11 13:34:39 +02:00
Matthias Hannig
fa6ca4e91c
added endpoint for noexport routes
2017-04-07 11:11:43 +02:00
Matthias Hannig
32f8a7b27c
removed quotes
2017-03-27 17:15:53 +02:00
hellerve
0d52326da7
also filter status parse with filter fields
2017-02-23 14:36:43 +01:00
hellerve
9c4a47fd11
interface names can contain periods
2017-02-23 13:02:05 +01:00
hellerve
71f8de383a
bugfix: filter fields are buggy
2017-02-23 12:24:43 +01:00
hellerve
8e2e8d2a97
added parser configuration for (for now exclusively) filtering fields from route parses
2017-02-22 18:09:45 +01:00