PIMD: RPF lookup mode per-group, per-source #17776
Merged
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.
Add the ability to configure the RPF lookup mode on a per-group and/or per-source basis.
Modified CLI:
rpf-lookup-mode MODE [group-list PREFIX_LIST] [source-list PREFIX_LIST]
If a group or source list is provided, the the RPF lookup mode will only apply to S,G addresses that match the given prefix list(s).
A global RPF lookup mode that does not specify a group or source list is always installed and uses the current default of
mrib-then-urib
. This default value can be changed as it is currently with the commandrpf-lookup-mode MODE
.Any number of RPF lookup modes can be defined, as long as the group and source list combination is unique.
Lookup modes are sorted by modes with both lists specified, followed by modes with only one list specified, followed by the global lookup mode. The order within the first 2 groups is unspecified. The first lookup mode that matches is used. Not all RPF lookups have a valid group address when performing the lookup (e.g. RPF to an RP), so in that case only lookup modes that do not specify a group-list will be used.