1
0
mirror of https://github.com/alice-lg/alice-lg.git synced 2024-05-11 05:55:03 +00:00

177 Commits

Author SHA1 Message Date
Matthias Hannig
4a1b69d726 added tests for pagination 2018-07-13 16:20:05 +02:00
Matthias Hannig
497dfcff97 added routes pagination 2018-07-13 16:19:51 +02:00
Matthias Hannig
0c7f514627 reverted change because lack of coffee 2018-07-13 11:41:00 +02:00
Matthias Hannig
162ce43c16 updated locking 2018-07-13 11:38:20 +02:00
Matthias Hannig
7d69696fc4 use pointers 2018-07-11 18:25:42 +02:00
Matthias Hannig
6248b64bdb cache route responses 2018-07-11 15:17:51 +02:00
Matthias Hannig
085e6af89c added LRU routes cache 2018-07-11 15:09:57 +02:00
Matthias Hannig
b27104d136 improved test runtime 2018-07-11 15:09:44 +02:00
Matthias Hannig
8c41c73a79 added routes lru cache 2018-07-11 14:56:51 +02:00
Matthias Hannig
73bf40b38c moved neighbors cache 2018-07-11 14:56:38 +02:00
Matthias Hannig
edd11141d3 added lru map 2018-07-11 14:56:16 +02:00
Matthias Hannig
f6210f25cd added cacheable response types 2018-07-11 14:07:52 +02:00
Matthias Hannig
aea5d5f19d api changes, source config 2018-07-11 14:07:26 +02:00
Matthias Hannig
5322920dcc keep source instances 2018-07-11 14:07:00 +02:00
Matthias Hannig
a02d8cc984 added neighbours cache to birdwatcher source 2018-07-11 13:56:02 +02:00
Matthias Hannig
32903b3f69 refactored refresh interval 2018-07-07 11:51:13 +02:00
Matthias Hannig
eae2e69758 duration is already formatted 2018-07-07 11:48:06 +02:00
Matthias Hannig
d6168da159 even more type refactoring 2018-07-07 11:45:34 +02:00
Matthias Hannig
d8a83f5404 refactored types 2018-07-07 11:41:00 +02:00
Matthias Hannig
f94966a772 refactored refresh interval 2018-07-07 11:39:46 +02:00
Matthias Hannig
a0a1f0a5f7 type refactoring 2018-07-07 11:35:34 +02:00
Matthias Hannig
23366c8709 refactored types 2018-07-07 11:30:40 +02:00
Matthias Hannig
fc686df4cb used pointers instead 2018-07-06 17:04:09 +02:00
Matthias Hannig
52c421d9ab Merge branch 'develop' into feature/decix-merge
* Implemented better AS Path
* Fixes: Link glitch when clicking on BGPAttributesModal Link
2018-07-05 16:32:35 +02:00
Matthias Hannig
fc42832319 Merge branch 'feature/imp-configure-neighbours-table' into develop 2018-07-05 16:03:46 +02:00
Matthias Hannig
2d9f7b1369 test timezone default value override 2018-07-05 15:27:03 +02:00
Matthias Hannig
f44e20e601 added UTC as default 2018-07-05 15:26:51 +02:00
Matthias Hannig
36aaa6cc0b time parsing tests 2018-07-05 15:18:52 +02:00
Matthias Hannig
e30c328c1f improved config test coverage 2018-07-05 14:55:12 +02:00
Matthias Hannig
b5005f4006 use example config as source 2018-07-05 14:41:37 +02:00
Matthias Hannig
f7ef57f6b8 added servertime format 2018-07-05 14:39:48 +02:00
Matthias Hannig
e27f204125 normalize to UTC 2018-07-05 14:36:30 +02:00
Matthias Hannig
ef201cf7a9 changed neighbour to address 2018-07-05 12:30:30 +02:00
Matthias Hannig
13b8b2c907 fixed section 2018-07-05 10:19:59 +02:00
Matthias Hannig
c5a84f7fd8 added columns to config response 2018-07-05 10:18:17 +02:00
Matthias Hannig
65da2f4f6d get neighbours columns 2018-07-05 10:16:03 +02:00
Matthias Hannig
8b69dd0d92 defined neighbours columns defaults 2018-07-02 16:18:36 +02:00
Matthias Hannig
64428a831d added defaults for routes columns 2018-07-02 16:12:20 +02:00
Matthias Hannig
14a9ebfa43 added neighbours columns and column ordering to config 2018-07-02 15:57:29 +02:00
Benedikt Rudolph
fa163d7453 Fix deduplication behaviour for filtered routes
Filtered routes were erroneously removed from the api output.
This fixes the following case:
A peer announces legitimate (accepted) routes that
carrry a next_hop attribute and an empty 'learnt_from'
attribute. Filtered routes from the same peer have an
incorrect next_hop but matching 'learnt_from' attribute.
Those were previously not included in the output of filtered
routes.

Reported by: Johannes Moos <johannes.moos@de-cix.net>
2018-06-27 18:55:22 +02:00
Benedikt Rudolph
db7d421810 Fix routes deduplication for remote-triggered blackholing.
In case of remote-triggered blackholing filtered routes may be present
that have a nextHop different from the IP of the neighbour the route
has been learnt from. These would not appear in on the routes page.
With this patch, routes ar displayed if either
gateway matches nextHop or the learnt_from address.
2018-06-27 18:52:50 +02:00
Benedikt Rudolph
24ae84c545 Fix deduplication of routes for peer with only filtered routes.
Effectively de-activate routes deduplication in case a peer announces
just filtered routes. Because no legitimate (accepted) route is
announced, we cannot reliably infer the neighbours gateway / nextHop IP.

This needs changes in the future  when another means of obtaining the
neighours gateway address (e.g. global peer status) becomes available.
2018-06-27 18:50:28 +02:00
Benedikt Rudolph
12781dccc0 Add refresh interval for routes and neighbours store.
See example config file. In effect, when enable_prefix_lookup == true.
2018-06-27 18:31:47 +02:00
Benedikt Rudolph
d4d0b15fdf Make AS search case insensitive. 2018-06-27 18:22:02 +02:00
Benedikt Rudolph
14798ffbcb Fix ASN lookup to use neighbour.Asn attribute.
In case neighbour.Description does not contain the string e.g. "AS42"
- this is the case when only the friendly name of a neighbour is in the
description field - we need to match this input with a regex and search within the
neighbour.Asn attribute.
2018-06-27 18:20:47 +02:00
Benedikt Rudolph
35e149d87e Adapt Alice-API output to a special BIRD API.
In a mulit-stage filtering setup the responses of a birdwatcher
BIRD API need processing to eliminate duplicate entries of routes
and eliminate routes of other routers that an IXP participant might
have.

The filter is applied in the .../protocols/<protocolID>/routes endpoint
it affects "imported" (removes routes that are filtered in pipe),
"filtered" (only those of router with <protocolID>), and "noexport"
(same).

Matthias Hannig:
    Resolved merge conflict in import path
2018-06-27 18:17:09 +02:00
Benedikt Rudolph
7bdaea30d7 Remove unnecessary fields from JSON served by API.
Resolved merge conflictiun
    client/components/routeservers/protocols/index.jsx

used calculations taken from "decix/decix" (HEAD) branch
2018-06-27 18:06:01 +02:00
Benedikt Rudolph
abc75f2405 Modify parseNeighbours for Multi-Table style counters.
Parse routes_accepted, and use other values for route_filtered.
2018-06-27 16:25:06 +02:00
Matthias Hannig
b12a6221a6 test lookup prefix at 2018-06-27 15:42:58 +02:00
Matthias Hannig
153eaf5d7e check for presence in result set 2018-06-27 15:40:38 +02:00