pbr: T6430: Extend table number limits for policy route set table #3581
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
A simple range change on available rt-ids for PBR "set table", matching up against the range change done to VRFs.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
Simple change to the route table IDs available:
Previous range was 1-200, now it is 1-65535.
There is a dependence on fwmarks between iproute2 and nft parts of PBR, the IDs of which are calculated off the rt-id. I've done some quick checks that this change won't collide or interfere with other existing usage at the high end of fwmark's ID range but they were not comprehensive.
How to test
Smoketest result
$ python3 /usr/libexec/vyos/tests/smoke/cli/test_policy_route.py
test_pbr_group (main.TestPolicyRoute.test_pbr_group) ... ok
test_pbr_mark (main.TestPolicyRoute.test_pbr_mark) ... ok
test_pbr_mark_connection (main.TestPolicyRoute.test_pbr_mark_connection) ... ok
test_pbr_matching_criteria (main.TestPolicyRoute.test_pbr_matching_criteria) ... ok
test_pbr_table (main.TestPolicyRoute.test_pbr_table) ... ok
Ran 5 tests in 23.847s
OK
Checklist: