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 conditions call-policy and match ordering #1133

Open
dplore opened this issue Jun 15, 2024 · 0 comments
Open

routing-policy conditions call-policy and match ordering #1133

dplore opened this issue Jun 15, 2024 · 0 comments

Comments

@dplore
Copy link
Member

dplore commented Jun 15, 2024

/routing-policy/policy-definitions/policy-definition/statements/statement/conditions is a container and has no definition for ordering of the items inside it. Yang has no field to assert ordering for nodes in a container, nor is there any explicit description of the order of processing between a call-policy and conditions should be processed in the description of routing-policy.

So a user can specify a statement with:

call-policy
match prefix
action reject route

But this could be executed by a system in any order. We say an action is predicated on a match condition, so that ordering is defined. But call-policy could be processed before or after the match with obviously different outcomes.

I suggest we define that a condition may only contain call-policy or match+action leafs. This does not limit the expression of policies and removes this ambiguous scenario where a condition could have both a call-policy and match leaves.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant