commit | e75fce588f3b2c4d4f5c30b81b4ed7dad74997ef | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Tue Apr 04 15:25:21 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jun 02 15:48:29 2023 +0200 |
tree | 8801f92897708463b27653564f1ba3c6d717ad9b | |
parent | 9e0c19098753cf68654e1a8fe5d8af51c8399566 [diff] [blame] |
yanglint TEST merge data via -m
diff --git a/tools/lint/tests/modules/modmerge.yang b/tools/lint/tests/modules/modmerge.yang new file mode 100644 index 0000000..60fd75c --- /dev/null +++ b/tools/lint/tests/modules/modmerge.yang
@@ -0,0 +1,21 @@ +module modmerge { + namespace "urn:yanglint:modmerge"; + prefix mm; + + container mmc { + leaf en { + type enumeration { + enum zero; + enum one; + } + } + leaf lm { + type int16; + must "../en != 'zero'"; + } + leaf lf { + type string; + } + } + +}