]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Remove configuration rule enforcing aggregation on NET
authorIgor Putovny <igor.putovny@nic.cz>
Wed, 20 Dec 2023 10:53:43 +0000 (11:53 +0100)
committerIgor Putovny <igor.putovny@nic.cz>
Thu, 30 May 2024 10:30:00 +0000 (12:30 +0200)
proto/aggregator/config.Y

index 07fdffd104a836c2e352f63b41f45dc7642826c0..ad5b1e2795b232b954bd87e4aace8ed9c1cb991f 100644 (file)
@@ -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;