mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Remove configuration rule enforcing aggregation on NET
This commit is contained in:
parent
79981d2ad2
commit
518f3969e5
@ -47,20 +47,13 @@ aggregator_proto_item:
|
||||
if (AGGREGATOR_CFG->aggr_on)
|
||||
cf_error("Only one aggregate on clause allowed");
|
||||
|
||||
_Bool net_present = 0;
|
||||
int count = 0;
|
||||
|
||||
for (const struct aggr_item_node *item = $3; item; item = item->next) {
|
||||
log(L_WARN "type %d sacode %d", item->i.type, item->i.sa.sa_code);
|
||||
if (item->i.type == AGGR_ITEM_STATIC_ATTR && item->i.sa.sa_code == SA_NET)
|
||||
net_present = 1;
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
if (!net_present)
|
||||
cf_error("'NET' must be present");
|
||||
|
||||
AGGREGATOR_CFG->aggr_on = cfg_alloc(sizeof(struct aggr_item) * count);
|
||||
|
||||
int pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user