]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BGP: Fix handling of bgp_aggregator atttribute
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 9 Sep 2019 11:17:30 +0000 (13:17 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 9 Sep 2019 11:17:30 +0000 (13:17 +0200)
The attribute should not be modifiable by filters as we do not
support its type.

proto/bgp/config.Y

index 1407315d0fdd2ee063977d18b14e1319aa827938..8222024d49c9d6771384947597fa3c7da2565359 100644 (file)
@@ -303,7 +303,7 @@ dynamic_attr: BGP_LOCAL_PREF
 dynamic_attr: BGP_ATOMIC_AGGR
        { $$ = f_new_dynamic_attr(EAF_TYPE_OPAQUE, T_ENUM_EMPTY, EA_CODE(PROTOCOL_BGP, BA_ATOMIC_AGGR)); } ;
 dynamic_attr: BGP_AGGREGATOR
-       { $$ = f_new_dynamic_attr(EAF_TYPE_INT, T_INT, EA_CODE(PROTOCOL_BGP, BA_AGGREGATOR)); } ;
+       { $$ = f_new_dynamic_attr(EAF_TYPE_OPAQUE, T_ENUM_EMPTY, EA_CODE(PROTOCOL_BGP, BA_AGGREGATOR)); } ;
 dynamic_attr: BGP_COMMUNITY
        { $$ = f_new_dynamic_attr(EAF_TYPE_INT_SET, T_CLIST, EA_CODE(PROTOCOL_BGP, BA_COMMUNITY)); } ;
 dynamic_attr: BGP_ORIGINATOR_ID