summaryrefslogtreecommitdiffstats
path: root/tests/yanglint/modules/modmerge.yang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/yanglint/modules/modmerge.yang')
-rw-r--r--tests/yanglint/modules/modmerge.yang21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/yanglint/modules/modmerge.yang b/tests/yanglint/modules/modmerge.yang
new file mode 100644
index 0000000..60fd75c
--- /dev/null
+++ b/tests/yanglint/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;
+ }
+ }
+
+}