You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: