summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_updgrp_adv.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-15 17:08:32 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-02-18 10:46:05 +0100
commit51c3a7deed7fc5a2e3bb7eff1c327bfa7020f8c8 (patch)
tree7d09d75c3de700edb4bcf391899e20a6cb120611 /bgpd/bgp_updgrp_adv.c
parentMerge pull request #10577 from donaldsharp/speeling (diff)
downloadfrr-51c3a7deed7fc5a2e3bb7eff1c327bfa7020f8c8.tar.xz
frr-51c3a7deed7fc5a2e3bb7eff1c327bfa7020f8c8.zip
bgpd: Allow setting attributes over route-maps for conditional advertisements
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_updgrp_adv.c')
-rw-r--r--bgpd/bgp_updgrp_adv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_updgrp_adv.c b/bgpd/bgp_updgrp_adv.c
index dd140e48a..97b32643b 100644
--- a/bgpd/bgp_updgrp_adv.c
+++ b/bgpd/bgp_updgrp_adv.c
@@ -691,7 +691,7 @@ void subgroup_announce_table(struct update_subgroup *subgrp,
safi)) {
if (subgroup_announce_check(dest, ri, subgrp,
dest_p, &attr,
- false)) {
+ NULL)) {
/* Check if route can be advertised */
if (advertise) {
if (!bgp_check_withdrawal(bgp,
@@ -910,7 +910,7 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
if (subgroup_announce_check(
dest, pi, subgrp,
bgp_dest_get_prefix(dest),
- &attr, false))
+ &attr, NULL))
bgp_adj_out_set_subgroup(
dest, subgrp, &attr,
pi);