summaryrefslogtreecommitdiffstats
path: root/tests/yanglint/modules/modmust.yang
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/yanglint/modules/modmust.yang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/yanglint/modules/modmust.yang b/tests/yanglint/modules/modmust.yang
new file mode 100644
index 0000000..99971bd
--- /dev/null
+++ b/tests/yanglint/modules/modmust.yang
@@ -0,0 +1,13 @@
+module modmust {
+ namespace "urn:yanglint:modmust";
+ prefix m;
+
+ import modleaf {
+ prefix ml;
+ }
+
+ leaf lfm {
+ type string;
+ must "/ml:lfl > 0";
+ }
+}