diff options
author | Nathan Bahr <nbahr@atcorp.com> | 2024-10-30 22:16:30 +0100 |
---|---|---|
committer | Nathan Bahr <nbahr@atcorp.com> | 2025-01-09 22:58:22 +0100 |
commit | 8b00575fbb358bc214a9281c948cb0d703aa7605 (patch) | |
tree | f503c99acd0fcffe72fa529f20640edbb6728236 /yang/frr-pim.yang | |
parent | Merge pull request #17805 from donaldsharp/2_test_fixes (diff) | |
download | frr-8b00575fbb358bc214a9281c948cb0d703aa7605.tar.xz frr-8b00575fbb358bc214a9281c948cb0d703aa7605.zip |
pimd,yang: Expand rpf-lookup-mode command
Add options for group-list and source-list, both of which take a prefix list name.
The prefix list is used to determine the lookup mode for specific sources and/or groups.
Any number of lookup modes can be configured as long as the combination of group
and source list is unique.
A global lookup mode (empty group and source lists) is always added and defaults to mrib-then-urib
as it currently functions. The global lookup mode can be changed as it current exists with the command
`rpf-lookup-mode MODE`.
When determinig which mode to use, match source (and group if provided) against the lists, if they are set.
If a lookup does not specify a group, then only use lookup modes that do not have a group list defined.
A lookup by definition will have a source, so no special handling there.
Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
Diffstat (limited to '')
-rw-r--r-- | yang/frr-pim.yang | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/yang/frr-pim.yang b/yang/frr-pim.yang index 8dadf4fd7..6b6870f66 100644 --- a/yang/frr-pim.yang +++ b/yang/frr-pim.yang @@ -202,11 +202,29 @@ module frr-pim { description "A grouping defining per address family pim global attributes"; - leaf mcast-rpf-lookup { - type mcast-rpf-lookup-mode; - default "none"; + list mcast-rpf-lookup { + key "group-list source-list"; description - "Multicast RPF lookup behavior."; + "RPF lookup modes."; + + leaf group-list { + type plist-ref; + description + "Multicast group prefix list."; + } + + leaf source-list { + type plist-ref; + description + "Unicast source address prefix list."; + } + + leaf mode { + type mcast-rpf-lookup-mode; + default "none"; + description + "Multicast RPF lookup behavior."; + } } leaf ecmp { |