commit | 9e0c19098753cf68654e1a8fe5d8af51c8399566 | [log] [tgz] |
---|---|---|
author | aPiecek <piecek@cesnet.cz> | Tue Apr 04 10:53:35 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Fri Jun 02 15:48:29 2023 +0200 |
tree | a8e58dd84e8018edb1e4112e2623a1b6ab5a6fca | |
parent | 60a517a3c4c0f422bc7ecf0cac2c1298eb0849e8 [diff] [blame] |
yanglint TEST print data with default values
diff --git a/tools/lint/tests/modules/moddefault.yang b/tools/lint/tests/modules/moddefault.yang new file mode 100644 index 0000000..26570c3 --- /dev/null +++ b/tools/lint/tests/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"; + } + } + +}