T5333: Set prefix UD for PBR generated user-defined chain names #2069
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
We cannot use some specific names like
POSTROUTING/PREROUTING
as for PBR they overlap with VyOS defined chainsChains autoconfigured by VyOS itself:
If we try to use the chain name
POSTROUTING
it generates 2 chains with the same namechain VYOS_PBR_POSTROUTING
one is autoconfigured and the second is defined by the userset policy route POSTROUTING rule 100
Add the user-defined (UD) prefix to separate user-defined names That allow to use of any user-defined names
Types of changes
Related Task(s)
Component(s) name
pbr
Proposed changes
How to test
VyOS config:
Before fix, chain
VYOS_PBR_POSTROUTING
defined 2 times it causes nft can't apply this rules:After the fix we have auto-generated
VYOS_PBR_POSTROUTING
and user-definedVYOS_PBR_UD_POSTROUTING
:Smoketest:
Checklist: