commit | 0e5d838a049a677a078584fed4744eaaa4eac447 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Wed Nov 28 16:37:53 2018 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Nov 28 16:37:53 2018 +0100 |
tree | d4794777c0748d0d8f0ea0c4ee1f9a46ad9b58de | |
parent | 05b1398acba68885f1cbf16d8addd807b2b8a602 [diff] [blame] |
schema compile CHANGE leaf-list support
diff --git a/src/parser_yang.c b/src/parser_yang.c index cbac833..310acb1 100644 --- a/src/parser_yang.c +++ b/src/parser_yang.c
@@ -2659,6 +2659,10 @@ LOGVAL_YANG(ctx, LY_VCODE_MISSTMT, "type", "leaf-list"); return LY_EVALID; } + if ((llist->min) && (llist->dflts)) { + LOGVAL_YANG(ctx, LY_VCODE_INCHILDSTMSCOMB, "min-elements", "default", "leaf-list"); + return LY_EVALID; + } return ret; }