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

Comments from Andy: IMO the WG should try to support more than the basics (like ranges and conditional logic) #3

Open
QiufangMa opened this issue Dec 30, 2024 · 3 comments

Comments

@QiufangMa
Copy link
Owner

No description provided.

@QiufangMa
Copy link
Owner Author

Joe: I very much agree with this. I debated whether to add it as a GitHub requirement as it moves away from something simpler. But in my experience with YANG-based templates, programmatic constructs like conditionals and simple loops have been very helpful.

@QiufangMa
Copy link
Owner Author

I very much agree with this. I debated whether to add it as a GitHub requirement as it moves away from something simpler. But in my experience with YANG-based templates, programmatic constructs like conditionals and simple loops have been very helpful.

The conditional part could be done with an Xpath filter. A loop tests all the templates matching the target object, running the xpath test.

@QiufangMa
Copy link
Owner Author

I very much agree with this. I debated whether to add it as a GitHub requirement as it moves away from something simpler. But in my experience with YANG-based templates, programmatic constructs like conditionals and simple loops have been very helpful.

The conditional part could be done with an Xpath filter. A loop tests all the templates matching the target object, running the xpath test.

see also netmod-wg/template-reqs#8

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

No branches or pull requests

1 participant