From: Igor Putovny Date: Wed, 20 Dec 2023 10:53:43 +0000 (+0100) Subject: Remove configuration rule enforcing aggregation on NET X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=518f3969e54fbc371857cfde3a2fc5d6d3ba51de;p=thirdparty%2Fbird.git Remove configuration rule enforcing aggregation on NET --- diff --git a/proto/aggregator/config.Y b/proto/aggregator/config.Y index 07fdffd10..ad5b1e279 100644 --- a/proto/aggregator/config.Y +++ b/proto/aggregator/config.Y @@ -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;