0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00
Commit Graph

4098 Commits

Author SHA1 Message Date
Igor Putovny
bd7248af78 Add small changes to test run script 2023-12-06 10:44:15 +01:00
Igor Putovny
f48e451962 Remove unused code 2023-12-06 10:37:36 +01:00
Igor Putovny
98f98fbbe9 Add script to prepare test case run 2023-12-05 15:17:35 +01:00
Igor Putovny
39581c7d7f Create default empty route for aggregation 2023-12-05 14:32:39 +01:00
Igor Putovny
74c48ab088 Add more assertions 2023-12-05 14:30:13 +01:00
Igor Putovny
49ee481280 Make pointer to aggregator bucket const 2023-12-05 14:25:08 +01:00
Igor Putovny
ff74440a52 Do not discard bucket from internal nodes 2023-11-22 13:09:48 +01:00
Igor Putovny
5ef7e9ab37 Do not assign bucket of any prefix to the root node 2023-11-22 13:01:59 +01:00
Igor Putovny
b574c62d57 Create event to run ORTC algorithm exactly once 2023-11-21 12:58:24 +01:00
Igor Putovny
54491f9606 Run ORTC algorithm 2023-11-21 12:41:14 +01:00
Igor Putovny
c78a25d9de Add assertions and general code improvements 2023-11-16 17:15:02 +01:00
Igor Putovny
ae8c718df3 Remove unused code 2023-11-16 16:59:14 +01:00
Maria Matejka
c16877a3d8 Autoconf: minor reduction of redundancy
Joined BIRD_CHECK_GCC_OPTION and BIRD_ADD_GCC_OPTION.
2023-10-24 13:51:19 +02:00
Igor Putovny
c5ec0eb50f Allow sanitization compiler option 2023-10-24 13:46:28 +02:00
Igor Putovny
edb6ba6f84 Rename constant 2023-10-20 13:13:47 +02:00
Igor Putovny
4bcf7ac37f Fix how bucket for new leaf nodes is chosen 2023-10-20 13:11:49 +02:00
Igor Putovny
f7e3a3f0a0 Use net_addr_ip4 instead of ip4_addr for printing prefixes 2023-10-20 12:20:12 +02:00
Igor Putovny
990cd14e4a Remove unused code 2023-10-20 11:59:23 +02:00
Igor Putovny
18c32a286c Add comments 2023-10-18 12:12:27 +02:00
Igor Putovny
d9ef88698f Change order of parameters in a few functions 2023-10-18 12:06:27 +02:00
Igor Putovny
a7d2b780d0 Simplify delete_trie() function 2023-10-13 15:26:03 +02:00
Igor Putovny
aa611e48e0 Assign bucket of ancestor node to leaf node 2023-10-06 14:38:07 +02:00
Igor Putovny
67e6a3e351 Fix incorrect implementation of the third pass 2023-10-06 14:19:04 +02:00
Igor Putovny
b003ffd348 Assign route bucket only to the last inserted node 2023-10-06 13:52:27 +02:00
Igor Putovny
3c87d99fe4 Fix argument order in several functions 2023-10-06 13:40:49 +02:00
Igor Putovny
0abecd3002 Add a few comments, print prefixes after aggregation 2023-10-06 12:52:08 +02:00
Igor Putovny
c164515fb6 Extend remove_node() with deleting root node 2023-09-21 13:49:59 +02:00
Igor Putovny
aec8688fbc Fix aggregator_bucket_unionize()
The last two while loops were incorrectly placed inside the first while loop
2023-09-21 12:40:00 +02:00
Igor Putovny
b81e91bed6 Fix const warning, add few comments 2023-09-20 13:46:34 +02:00
Igor Putovny
4dffb687f1 Delete trie during aggregator shutdown 2023-09-20 13:05:49 +02:00
Igor Putovny
c2627f45fd Refactor and fix aggregator_bucket_unionize() 2023-09-20 12:19:01 +02:00
Igor Putovny
144e6c393c Fix aggregator_bucket_intersect(), add comments and fix naming 2023-09-19 12:06:52 +02:00
Igor Putovny
ead1ade4c2 Remove unused code 2023-09-18 14:48:22 +02:00
Igor Putovny
ce1e256874 Add new implementation of third_pass() and remove old implementation 2023-09-18 14:18:25 +02:00
Igor Putovny
812e646625 Move trie initialization to aggregator_start() 2023-09-15 11:04:37 +02:00
Igor Putovny
b48ac47aec Fix previous version, aggregator is now stable but untested 2023-09-14 09:33:14 +02:00
Igor Putovny
e94c9cbf36 Implement basics of prefix aggregation functionality 2023-09-11 12:38:19 +02:00
Maria Matejka
0a408c22f6 Aggregator: Fixed hashing of adata 2023-07-12 15:11:00 +02:00
Maria Matejka
2e8e901262 Aggregator moved to a separate protocol
Also updated data structures and reconfigure.

Known bug: the hash doesn't take adata into account. Needs fixing!
2023-07-10 13:46:09 +02:00
Maria Matejka
8ccc4d0679 Aggregator: polishing of filter API 2023-06-23 11:28:19 +02:00
Igor Putovny
e9d9dc7561 Basic route aggregation
User can specify list of route attributes in the configuration file
and run route aggregation on the export side of the pipe protocol.
Routes are sorted and for every group of equivalent routes
new route is created and exported to the routing table.
It is also possible to specify filter which will run for every
route before aggregation.
Furthermore, it will be possible to set attributes of new routes
according to attributes of the aggregated routes.

This is a work in progress.
2023-06-23 09:43:38 +02:00
Maria Matejka
d001ef83f9 Simple testing of reconfiguration to a slightly different one 2023-06-23 09:05:48 +02:00
Maria Matejka
58177b4bc9 Filter: Print instructions take only one value (simplification) 2023-06-19 17:32:19 +02:00
Maria Matejka
c0179825da Filter: Shortened method declarations 2023-06-19 17:32:19 +02:00
Maria Matejka
7b49ba1e65 Filter: The for loop uses the method system for type dispatch 2023-06-19 17:32:19 +02:00
Maria Matejka
784a92b300 Removing unused terminals from filter config 2023-06-19 17:32:19 +02:00
Maria Matejka
8751d8c447 Filter: Methods rework
Methods can now be called as x.m(y), as long as x can have its type
inferred in config time. If used as a command, it modifies the object,
if used as a value, it keeps the original object intact.

Also functions add(x,y), delete(x,y), filter(x,y) and prepend(x,y) now
spit a warning and are considered deprecated.

It's also possible to call a method on a constant, see filter/test.conf
for examples like bgp_path = +empty+.prepend(1).

Inside instruction definitions (filter/f-inst.c), a METHOD_CONSTRUCTOR()
call is added, which registers the instruction as a method for the type
of its first argument. Each type has its own method symbol table and
filter parser switches between them based on the inferred type of the
object calling the method.

Also FI_CLIST_(ADD|DELETE|FILTER) instructions have been split to allow
for this method dispatch. With type inference, it's now possible.
2023-06-19 17:32:19 +02:00
Maria Matejka
b2ae515cf8 Uninitialized filter variables of path/[el]?clist types are now explicitly empty 2023-06-17 11:54:12 +02:00
Maria Matejka
c6494e45a6 Conf: config warnings show the file position 2023-06-17 00:03:30 +02:00
Maria Matejka
c836bd388d Filter: functions can and should have typed return values 2023-06-15 14:00:11 +02:00