-
Notifications
You must be signed in to change notification settings - Fork 697
Add initial prefix filter #1441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
682b613
add initial prefix filter
ElodinLaarz 28cdc50
version bump afts modules
ElodinLaarz ddcbed0
add config false to aft-summary
ElodinLaarz 8076a1f
fix config false in aft-summary
ElodinLaarz c062b67
replace generic AFT global filter policy with separate IPv4 and IPv6 …
ElodinLaarz 32c30d5
add example routing policy behavior to description
ElodinLaarz 048692e
re-order to trigger CI
ElodinLaarz 1a16087
change descriptions
ElodinLaarz 816165a
submodule to augment
ElodinLaarz eb1de08
update to run CI
ElodinLaarz b40839e
update to run CI (revert)
ElodinLaarz 421a30e
modify to CI
ElodinLaarz 866b273
modify to CI
ElodinLaarz 2574203
modify to CI
ElodinLaarz f52c191
modify to CI
ElodinLaarz c1ba943
modify to CI
ElodinLaarz eb1a6c8
modify to CI
ElodinLaarz 772774c
Merge branch 'master' into afts-filter
ElodinLaarz e4534cb
update language installed -> streamed
ElodinLaarz 10440dd
Apply suggestion from @dplore
ElodinLaarz 8b76b01
Refine descriptions for IPv6 and IPv4 filtering policies
ElodinLaarz 0af9b3b
Merge branch 'master' into afts-filter
ElodinLaarz 34f5ade
chore: rm whitespace
ElodinLaarz 5547624
revert: local-routing whitespace
ElodinLaarz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,103 @@ | ||
| module openconfig-aft-global-filter { | ||
| namespace "http://openconfig.net/yang/aft/global-filter"; | ||
| prefix "oc-aft-gf"; | ||
|
|
||
| import openconfig-extensions { prefix "oc-ext"; } | ||
| import openconfig-network-instance { prefix "oc-ni"; } | ||
| import openconfig-routing-policy { prefix "oc-rpol"; } | ||
|
|
||
| organization | ||
| "OpenConfig working group"; | ||
|
|
||
| contact | ||
| "OpenConfig working group | ||
| www.openconfig.net"; | ||
|
|
||
| description | ||
| "Module containing definitions of groupings for the global | ||
| filter configuration applicable to abstract forwarding tables."; | ||
|
|
||
| oc-ext:openconfig-version "3.3.0"; | ||
|
|
||
| revision "2026-03-10" { | ||
| description | ||
| "Add global-filter container to support per-network-instance and per | ||
| AFT filtering, with routing policy split by address family."; | ||
| reference "3.3.0"; | ||
| } | ||
|
|
||
| grouping aft-global-filter-config { | ||
| description | ||
| "Configuration parameters for the AFT global filter."; | ||
| leaf ipv6-policy { | ||
| type leafref { | ||
| path "/oc-rpol:routing-policy/oc-rpol:policy-definitions" + | ||
| "/oc-rpol:policy-definition/oc-rpol:config/oc-rpol:name"; | ||
| } | ||
| description | ||
| "Reference to a routing policy that is used to filter the | ||
| IPv6 prefixes that are streamed from the FIB. This does | ||
| not affect which prefixes are installed in the FIB. The | ||
| policy may, for example, use an explicit prefix set to | ||
| match prefixes, or match prefixes that are more specific than | ||
| a given prefix."; | ||
| } | ||
|
|
||
| leaf ipv4-policy { | ||
| type leafref { | ||
| path "/oc-rpol:routing-policy/oc-rpol:policy-definitions" + | ||
| "/oc-rpol:policy-definition/oc-rpol:config/oc-rpol:name"; | ||
| } | ||
| description | ||
| "Reference to a routing policy that is used to filter the | ||
| IPv4 prefixes that are streamed from the FIB. This does | ||
| not affect which prefixes are installed in the FIB. The | ||
| policy may, for example, use an explicit prefix set to | ||
| match prefixes, or match prefixes that are more specific than | ||
| a given prefix."; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| grouping aft-global-filter-structural { | ||
| description | ||
| "Structural grouping defining the schema for the global filter | ||
| applied to the abstract forwarding tables."; | ||
|
|
||
| container global-filter { | ||
| description | ||
| "Configuration and state for a global filter applied to the | ||
| AFT. The filter is used to restrict which prefixes from the | ||
| network instance's AFT are streamed via gNMI; it does not | ||
| affect which prefixes are installed in the forwarding plane | ||
| (hardware FIB). All gNMI clients subscribing to the IPv4 or | ||
| IPv6 AFT for this network instance will only receive data | ||
| corresponding to prefixes accepted by the configured | ||
| filter policy. Prefixes rejected by the policy are omitted | ||
| from the streamed AFT state for every subscriber, regardless | ||
| of the client."; | ||
|
|
||
| container config { | ||
| description | ||
| "Configuration parameters for the AFT global filter."; | ||
|
|
||
| uses aft-global-filter-config; | ||
| } | ||
|
|
||
| container state { | ||
| config false; | ||
| description | ||
| "Operational state parameters for the AFT global filter."; | ||
|
|
||
| uses aft-global-filter-config; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| augment "/oc-ni:network-instances/oc-ni:network-instance/oc-ni:afts" { | ||
| description | ||
| "Add global filter to AFT tree."; | ||
|
|
||
| uses aft-global-filter-structural; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.