0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-12 14:18:43 +00:00
Commit Graph

4089 Commits

Author SHA1 Message Date
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
Maria Matejka
27ac8cb2ca GitLab: Disabling build for CentOS 7 and Ubuntu 14.04 as our build machines don't like C11 2023-06-15 14:00:11 +02:00
Maria Matejka
3272dceb38 Filter/Conf: Method names have their own keyword hash
To allow for future dynamic method definition, parsing method names is
done via a dedicated keyword hash/scope.
2023-06-13 12:26:50 +02:00
Maria Matejka
317c89cc8a Conf: Allowing conf scope to be explicitly read only 2023-06-13 11:09:41 +02:00
Maria Matejka
08d4205754 Conf: Symbol manipulation gets its context explicitly 2023-06-13 10:51:03 +02:00
Maria Matejka
3834ce040a Filter: any lvalue can get its methods called 2023-06-12 11:40:05 +02:00
Maria Matejka
3a221a74ef Filter: split out dot-notation methods to separate targets
This is just a preparationary refactoring to allow type-based method
tables.
2023-06-12 11:20:49 +02:00
Maria Matejka
72f3189ca5 Conf: Keywords have their default symbols
This avoids unnecessary collapsed soft scopes caused by keyword symbol multiallocation.
2023-06-09 23:22:21 +02:00
Maria Matejka
df338396cd Conf: Symbol hashes for all scopes
This is a backport cherry-pick of commits
  165156beeb
  cce974e8ea

from the v3.0 branch as we need symbol hashes directly inside their
scopes for more general usage than before.

The redefinable keywords must be specified in any .Y file as follows:

  toksym: THE_KEYWORD ;
2023-06-09 13:49:31 +02:00
Maria Matejka
a19a60bd6c Dropping empty-type const f_vals, they were copied anyway 2023-06-09 13:49:31 +02:00