From e5bb11abfbf3c42b7087c3f0fc59398243486448 Mon Sep 17 00:00:00 2001 From: dplore Date: Thu, 31 Aug 2023 10:45:41 -0700 Subject: [PATCH] add continue to policy-result-type --- .../policy/openconfig-routing-policy.yang | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/release/models/policy/openconfig-routing-policy.yang b/release/models/policy/openconfig-routing-policy.yang index bf419b779..413982f31 100644 --- a/release/models/policy/openconfig-routing-policy.yang +++ b/release/models/policy/openconfig-routing-policy.yang @@ -54,7 +54,9 @@ module openconfig-routing-policy { corresponding action statement is executed. If the action statement has either accept-route or reject-route actions, policy evaluation of the current policy definition stops, and no further - policy definitions in the chain are evaluated. + policy definitions in the chain are evaluated. If the action + statement has the continue action, policy evaluation proceeds to + the next statement. Continue is the default policy result action. If the condition is not satisfied, then evaluation proceeds to the next policy statement. If none of the policy statement @@ -77,7 +79,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 @@ -162,15 +170,22 @@ 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 CONTINUE { + description "Evaluation of the policy will continue to the + next statement."; } } + default CONTINUE; description "Type used to specify route disposition in - a policy chain"; + a policy chain."; }