clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
212 stars 72 forks source link

must statement check int value failed #386

Closed kelin-Monster closed 1 year ago

kelin-Monster commented 1 year ago

Hi:

EX: container sum { leaf add1 { type uint32; } leaf add2 { type uint32; must "current() > ../add1" { error-message "check fail"; } } }

if add1=5, add2=10, then the must statement will check failed.

olofhagsand commented 1 year ago

This should be fixed by: https://github.com/clicon/clixon/commit/b67ef69b7fffcbe52b8f4da4293d24b1cc80385e Please verify