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

Support basic programmatic elements in templates #8

Open
xorrkaz opened this issue Nov 13, 2024 · 1 comment
Open

Support basic programmatic elements in templates #8

xorrkaz opened this issue Nov 13, 2024 · 1 comment

Comments

@xorrkaz
Copy link

xorrkaz commented Nov 13, 2024

Requirements

Templates should support conditional expressions and loops/ranges (i.e., iterate over a set of objects). These constructs should be able to operate on variables in addition to YANG data nodes.

Non-Requirements

Andy suggested using XPath for these (e.g., conditionals could be done similarly to "when" clauses). XPath is likely already supported by servers.

That said, XPath notation might not be as easily adopted by users of templates and perhaps consideration could be given to a simpler syntax.

@robertjwills
Copy link

This adds a lot of complexity in specification and implementation. It sounds like the suggestion here is that Yang Templates should provide some sort of diluted flavour of XSL, where programmatic concepts such as loops are expressed through a data tree.

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

2 participants