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

85 Commits

Author SHA1 Message Date
8f19408bad Implemented support to query the live neighbor status from the store
via uncached queries.
2019-03-08 13:54:44 +01:00
5175ccfe4c Added missing caching for Neighbours(). 2019-03-08 13:53:05 +01:00
1a0b1b1c42 Merge branch 'feature/source-birdwatcher-redesign' into release/3.5.0 2019-02-22 16:01:12 +01:00
c03180aff8 Fixed a bug where the cache would be modified for subsequent reqeusts. 2019-03-08 09:58:58 +01:00
99639c7de1 Change extendend communities format
- Changed extended communities fomat from (string,int,int) to
  (string,string,string) in order to support communities like
  (generic, 0x43000000, 0x1).
- Removed old test case.
2019-03-08 09:58:58 +01:00
bb7c08819a Save memory by periodically expiring cache entries
- Added a method to expire cache entries, based on the ttl.
- Added a housekeeping method that will periodically expire cache
  entries and also maybe configured to force a GC/SCVG run.
2019-03-08 09:58:57 +01:00
6fe863e4c8 Removed the routesReceived and routesFiltered caches
Use only the routesRequired cache to avoid duplicate caching.
2019-03-08 09:58:57 +01:00
d9ddc5d7b5 Fixed a bug in the Neighbours() method
A a peer that is down would cause an interface conversion.
2019-03-08 09:58:56 +01:00
a5f2cc4a1e Initial version of birdwatcher source redesign
Split up the birdwatcher source into multiple types, that resemble the
functionality that was removed from birdwatcher.

* Remove NeighborsSummary() feature and tests
* Provide example config options
2019-03-08 09:58:56 +01:00
6d3ea79959 honor show_last_reboot = false 2019-01-24 12:41:08 +01:00
a6f4a6d19c removed old source artifact 2018-12-09 18:16:41 +01:00
e49a689cfb refactored url handling 2018-12-09 17:31:02 +01:00
2cde3fdf3f cast ext community type 2018-11-11 17:18:56 +01:00
3529ae4884 fixes another concurrent map access 2018-11-09 12:13:47 +01:00
47a6b47c1d always try neighbors summary if not disabled 2018-10-25 20:42:31 +02:00
2fef0e8d79 include last_error from neighbor summary 2018-10-19 16:06:47 +02:00
4607573a1e include BGP extended communities in response 2018-10-08 14:24:41 +02:00
5a3c46f0df prevent concurrent map access 2018-08-13 11:13:00 +02:00
369542c2a3 added primary flag to result set 2018-08-02 14:26:28 +02:00
b1b215c92d do not fail on error 2018-07-27 17:58:39 +02:00
89580c8941 include cache status from API 2018-07-27 17:06:05 +02:00
8cfbca2342 fixed formatting 2018-07-25 17:03:30 +02:00
804f2329a6 Merge branch 'develop' into feature/routes-pagination 2018-07-16 16:51:33 +02:00
505edf74c9 updated test to cover state_changed in neighbor-summary 2018-07-16 16:51:13 +02:00
931e42ccb8 Merge branch 'develop' into feature/routes-pagination 2018-07-16 16:38:01 +02:00
84df5e9bc5 added config option to force use of classic neighbor list method 2018-07-16 16:30:39 +02:00
e7670d37f6 changed summary endpoint 2018-07-16 16:23:07 +02:00
1c1fcd9433 use state_changed as timestamp 2018-07-16 11:04:35 +02:00
df1143cf0a use neighbors summary if present in birdwatcher 2018-07-14 17:01:12 +02:00
1f5b067c52 added neighbors summary parsing 2018-07-14 16:35:37 +02:00
a99fc9069c added parser and parser test skeleton 2018-07-14 15:50:22 +02:00
f66ad18a1c prevent accidental double fetches from backend 2018-07-13 17:59:03 +02:00
8372cd0844 added routes fetching 2018-07-13 17:47:41 +02:00
909d42e3ed split routes endpoints 2018-07-13 16:40:28 +02:00
7d69696fc4 use pointers 2018-07-11 18:25:42 +02:00
6248b64bdb cache route responses 2018-07-11 15:17:51 +02:00
73bf40b38c moved neighbors cache 2018-07-11 14:56:38 +02:00
a02d8cc984 added neighbours cache to birdwatcher source 2018-07-11 13:56:02 +02:00
d6168da159 even more type refactoring 2018-07-07 11:45:34 +02:00
fc686df4cb used pointers instead 2018-07-06 17:04:09 +02:00
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
36aaa6cc0b time parsing tests 2018-07-05 15:18:52 +02:00
f7ef57f6b8 added servertime format 2018-07-05 14:39:48 +02:00
e27f204125 normalize to UTC 2018-07-05 14:36:30 +02:00
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
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
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
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
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
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