Robert Wilton <[email protected]> wrote: [...]
> Personally, I really dislike the implicit delete behaviour of when > statements in steps (2) and (3) because I think that it adds a lot of > unnecessarily complexity in the processing, and has a very surprising > interaction with NACM. I would much rather that the client was forced > to delete everything explicitly. I.e. rather than auto deleting some > config due to an invalid when expression, instead just reject the > config change with an appropriate error. I would be all for changing > this behaviour in a future version of YANG. :-) This has been discussed quite a lot in the past... Think of "when" as a generalized version of "choice". If you don't want the auto-deletion aspects of "when", then use "must". I agree that it is a sharp tool; so use it with care. But as with many sharp tools, it is quite handy when used properly. /martin > > Thanks, > Rob > > > > Rgds, > > > > Jason > > > > > > > > _______________________________________________ > > netmod mailing list > > [email protected] > > https://secure-web.cisco.com/1fuFv0na4qfxbvBYug9IKC-mmyzxu1yP8GNikD9y4MUBFLzTufk-XIyIkQQrHLymAFnh5O5vcA-QoCWAFDfBuEsJQy0DpHJfhfVL3yhtZ6B9hHa0OI17Q2MfqLXBvRC3wylOGP9A2ZzeMn9DMara96FtuGPOLmNufjx3D1jE01LjrKo8uu22WTQMoo0Mn2E9HYQcZIL1UA4WJRTDVY7B3mtjkfWXKRQyGBI0ydzAZKkRO1JVLreMh5cv3ste_WLHzwx7LRVLUxNReQ7Lx4_fe5jRlkjJm8oEjVowunA5cLYRCfIgbGu7DJjhGoh4X1oP4yt7U9imcXzfwjGaHFvrtLRKn7YXWyIwWwkA-bzMFPchPR0MkfiYcZkI9LP3mBmcF/https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fnetmod > _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
