summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnke Chen <enchen@paloaltonetworks.com>2025-01-06 21:01:14 -0800
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2025-01-07 11:14:34 +0000
commit0313ea163965acd5363863517765c4fec283ae7a (patch)
tree567ec2f60ca8dd5f0f125463acfbe9bd81da9922
parent23812cbecb998b288b2b9547e629c03c9962d754 (diff)
bgpd: fix a bug in peer_allowas_in_set()
Fix a bug in peer_allowas_in_set() so that the config takes effect for peer-group members. Signed-off-by: Enke Chen <enchen@paloaltonetworks.com> (cherry picked from commit bcd10177940223d86cbcfbe1818b2a0b29e0552b)
-rw-r--r--bgpd/bgpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 8352a9b631..852667fdba 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -6459,7 +6459,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
SET_FLAG(member->af_flags[afi][safi],
PEER_FLAG_ALLOWAS_IN_ORIGIN);
member->allowas_in[afi][safi] = 0;
- peer_on_policy_change(peer, afi, safi, 0);
+ peer_on_policy_change(member, afi, safi, 0);
}
} else {
if (member->allowas_in[afi][safi] != allow_num
@@ -6468,7 +6468,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
UNSET_FLAG(member->af_flags[afi][safi],
PEER_FLAG_ALLOWAS_IN_ORIGIN);
member->allowas_in[afi][safi] = allow_num;
- peer_on_policy_change(peer, afi, safi, 0);
+ peer_on_policy_change(member, afi, safi, 0);
}
}
}