]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
l3vpn.c: set proper flag when setting EA_BGP_EXT_COMMUNITY
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Fri, 21 Mar 2025 13:17:47 +0000 (14:17 +0100)
committerMaria Matejka <mq@ucw.cz>
Tue, 1 Apr 2025 18:37:21 +0000 (20:37 +0200)
proto/l3vpn/l3vpn.c

index ec9eeb75281344e2b1d957143dff1a3f06026b29..bd5fbdaf00a43cb61cb9c92a62b8e016cc946b82 100644 (file)
@@ -221,7 +221,7 @@ l3vpn_rt_notify(struct proto *P, struct channel *c0, net *net, rte *new, rte *ol
       ea_set_attr_u32(&a->eattrs, tmp_linpool, EA_MPLS_POLICY, 0, EAF_TYPE_INT, mc->label_policy);
 
       struct adata *ad = l3vpn_export_targets(p, ea_get_adata(a0->eattrs, EA_BGP_EXT_COMMUNITY));
-      ea_set_attr_ptr(&a->eattrs, tmp_linpool, EA_BGP_EXT_COMMUNITY, 0, EAF_TYPE_EC_SET, ad);
+      ea_set_attr_ptr(&a->eattrs, tmp_linpool, EA_BGP_EXT_COMMUNITY, BAF_OPTIONAL | BAF_TRANSITIVE, EAF_TYPE_EC_SET, ad);
 
       /* Replace MPLS-incompatible nexthop with lookup in VRF table */
       if (!mpls_valid_nexthop(a) && p->p.vrf)