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

add NEXT-STATEMENT to policy-result-type #949

Merged
merged 16 commits into from
Oct 17, 2023
34 changes: 29 additions & 5 deletions release/models/policy/openconfig-routing-policy.yang
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ module openconfig-routing-policy {
corresponding action statement is executed. If the action
dplore marked this conversation as resolved.
Show resolved Hide resolved
statement has either accept-route or reject-route actions, policy
dplore marked this conversation as resolved.
Show resolved Hide resolved
evaluation of the current policy definition stops, and no further
dplore marked this conversation as resolved.
Show resolved Hide resolved
policy definitions in the chain are evaluated.
policy definitions in the chain are evaluated. If the action
dplore marked this conversation as resolved.
Show resolved Hide resolved
statement has the NEXT_STATEMENT action, policy evaluation proceeds
dplore marked this conversation as resolved.
Show resolved Hide resolved
to the next statement. If the action statement has the NEXT-POLICY
dplore marked this conversation as resolved.
Show resolved Hide resolved
action, evaluation of statements within the current policy stops.
dplore marked this conversation as resolved.
Show resolved Hide resolved
Any modifications to a route are preserved and evaluation proceeds
dplore marked this conversation as resolved.
Show resolved Hide resolved
to the next policy, if any. The NEXT_STATEMENT is the default
dplore marked this conversation as resolved.
Show resolved Hide resolved
policy result action.

If the condition is not satisfied, then evaluation proceeds to
the next policy statement. If none of the policy statement
Expand All @@ -77,7 +83,13 @@ 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 "2023-08-31" {
description
"Add 'continue' to policy-result-type.";
reference "3.4.0";
}

revision "2022-05-24" {
description
Expand Down Expand Up @@ -162,15 +174,27 @@ module openconfig-routing-policy {
typedef policy-result-type {
type enumeration {
enum ACCEPT_ROUTE {
description "Policy accepts the route";
description "Policy accepts the route and evaluation of the
current policy definition stops.";
}
enum REJECT_ROUTE {
description "Policy rejects the route";
description "Policy rejects the route and evaluation of the
current policy definition stops.";
}
enum NEXT_STATEMENT {
description "Evaluation of the policy will continue to the
dplore marked this conversation as resolved.
Show resolved Hide resolved
next statement.";
}
enum NEXT_POLICY {
description "Evaluation of statements in current policy will
stop. Any modifications to the route are preserved and
evaluation proceeds to the next policy.";
}
}
default NEXT_STATEMENT;
description
"Type used to specify route disposition in
a policy chain";
a policy chain.";
}


Expand Down
Loading