summaryrefslogtreecommitdiffstats
path: root/tests/yanglint/modules/moddefault.yang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/yanglint/modules/moddefault.yang')
-rw-r--r--tests/yanglint/modules/moddefault.yang19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/yanglint/modules/moddefault.yang b/tests/yanglint/modules/moddefault.yang
new file mode 100644
index 0000000..26570c3
--- /dev/null
+++ b/tests/yanglint/modules/moddefault.yang
@@ -0,0 +1,19 @@
+module moddefault {
+ namespace "urn:yanglint:moddefault";
+ prefix md;
+
+ container mdc {
+ leaf lf {
+ type uint16;
+ }
+ leaf di {
+ type int16;
+ default "5";
+ }
+ leaf ds {
+ type string;
+ default "str";
+ }
+ }
+
+}