Skip to content
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

routing-policy: new explicit action and behaviour clarification #973

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions release/models/policy/openconfig-routing-policy.yang
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,16 @@ module openconfig-routing-policy {
the remaining conditions (using a modified route if the
subroutine performed any changes to the route).";

oc-ext:openconfig-version "3.3.0";
oc-ext:openconfig-version "3.4.0";

revision "2022-10-11" {
description
"Adding explicit policy statement action of NEXT_STATEMENT. Defining
default policy statement action as REJECT.
Clarify behaviour if given route is not explicitly accepted or rejected in
any of statement of any of policies on the list";
reference "3.4.0";
}

revision "2022-05-24" {
description
Expand Down Expand Up @@ -167,6 +176,14 @@ module openconfig-routing-policy {
enum REJECT_ROUTE {
description "Policy rejects the route";
}
enum NEXT_STATEMENT {
description "Route is passed to next statement for evaluation.
If current statement is last in policy, route is passed to next policy
(if exists).
If current statement is last one in last policy, route is REJECTED,
unless other configuration or standard (e.g. RFC8212) state
different explicitly";
}
}
description
"Type used to specify route disposition in
Expand Down Expand Up @@ -738,9 +755,10 @@ module openconfig-routing-policy {

leaf policy-result {
type policy-result-type;
default NEXT_STATEMENT;
description
"Select the final disposition for the route, either
accept or reject.";
accept, reject or pass to next statement for evaluation.";
}
}

Expand Down
Loading