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

Allow when in action #16

Open
bogaertb opened this issue Feb 27, 2017 · 5 comments
Open

Allow when in action #16

bogaertb opened this issue Feb 27, 2017 · 5 comments

Comments

@bogaertb
Copy link

It would be good to be able to define an action when the value of a certain leaf is set to a (set of) specific value(s). For example: in case we want to reset specific HW components one might think to define a reset action, however certain components (identified by a HW class) might not be supporting a reset. A possible implementation would be that the device returns an error in this case. To me it looks cleaner if YANG would support this by allowing a when clause for the action RPC definition.

@immibis
Copy link

immibis commented Mar 22, 2017

Good idea.

@sunseawq
Copy link

sunseawq commented Jul 6, 2018

Support.

@schoenw
Copy link

schoenw commented Jul 18, 2018

Sounds not too complicated but needs more thought.

@kwatsen
Copy link
Contributor

kwatsen commented Jul 19, 2018

workaround: put action inside a dummy container with a "when" statement

@mbj4668
Copy link

mbj4668 commented Nov 1, 2018

I support this. It is likely an omission.

@kwatsen kwatsen added this to Definitely Dos (MUST Solve) in YANG Next Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
YANG Next
Definitely Dos (MUST Solve)
Development

No branches or pull requests

6 participants