Skip to content

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jun 26, 2025

…to bad type match

The ecommunity_non_transitive() helper incorrectly used CHECK_FLAG() to test against ECOMMUNITY_ENCODE_IP_NON_TRANS (0x41), which is a full type code, not a bitmask. As a result, type 0x03 (transitive opaque), used for encapsulation (e.g., VXLAN), was mistakenly matched and stripped during re-announcement.

This patch replaces the incorrect CHECK_FLAG() with a direct equality check.

Bug caused stripping of valid VXLAN encapsulation communities (type 0x03) on reflected UPDATEs.

Signed-off-by: Nick Bouliane nbouliane@coreweave.com

That should fix the bug mentioned here: https://blog.ipspace.net/2025/06/evpn-route-attributes-matter/


This is an automatic backport of pull request #19065 done by Mergify.

…to bad type match

The ecommunity_non_transitive() helper incorrectly used CHECK_FLAG()
to test against ECOMMUNITY_ENCODE_IP_NON_TRANS (0x41), which is a full
type code, not a bitmask. As a result, type 0x03 (transitive opaque),
used for encapsulation (e.g., VXLAN), was mistakenly matched and stripped
during re-announcement.

This patch replaces the incorrect CHECK_FLAG() with a direct equality check.

Bug caused stripping of valid VXLAN encapsulation communities (type 0x03)
on reflected UPDATEs.

Signed-off-by: Nick Bouliane <nbouliane@coreweave.com>
(cherry picked from commit 954e662)

# Conflicts:
#	bgpd/bgp_ecommunity.c
@mergify mergify bot added the conflicts label Jun 26, 2025
Copy link
Author

mergify bot commented Jun 26, 2025

Cherry-pick of 954e662 has failed:

On branch mergify/bp/stable/10.2/pr-19065
Your branch is up to date with 'origin/stable/10.2'.

You are currently cherry-picking commit 954e66221.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   bgpd/bgp_ecommunity.c

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@frrbot frrbot bot added the bgp label Jun 26, 2025
@ton31337 ton31337 closed this Jun 26, 2025
@ton31337 ton31337 deleted the mergify/bp/stable/10.2/pr-19065 branch June 26, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants