mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Basic route aggregation
Add a new protocol offering 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. Original work by Igor Putovny, subsequent cleanups and finalization by Maria Matejka.
This commit is contained in:
committed by
Ondrej Zajicek
parent
0a729b509c
commit
977b82fba4
@@ -238,6 +238,9 @@ struct symbol *cf_new_symbol(struct sym_scope *scope, pool *p, struct linpool *l
|
||||
sym_->var_ = def_; \
|
||||
sym_; })
|
||||
|
||||
#define cf_create_symbol(conf_, name_, type_, var_, def_) \
|
||||
cf_define_symbol(conf_, cf_get_symbol(conf_, name_), type_, var_, def_)
|
||||
|
||||
void cf_push_scope(struct config *, struct symbol *);
|
||||
void cf_pop_scope(struct config *);
|
||||
void cf_push_soft_scope(struct config *);
|
||||
|
@@ -95,6 +95,7 @@ CF_DECLS
|
||||
struct timeformat *tf;
|
||||
mpls_label_stack *mls;
|
||||
const struct adata *bs;
|
||||
struct aggr_item_node *ai;
|
||||
}
|
||||
|
||||
%token END CLI_MARKER INVALID_TOKEN ELSECOL DDOT
|
||||
|
Reference in New Issue
Block a user