yanglint FEATURE --yang-library-file for inter-mod
Data file to create an exact YANG schema context is now available
in the interactive mode.
diff --git a/tools/lint/tests/interactive/extdata.test b/tools/lint/tests/interactive/extdata.test
index bef06a7..e253d1a 100644
--- a/tools/lint/tests/interactive/extdata.test
+++ b/tools/lint/tests/interactive/extdata.test
@@ -33,6 +33,15 @@
ly_cmd "print -f tree modsm" "--mp root.*--rw lfl/"
}}
+test ext_data_schema_mount_tree_yanglibfile {Print tree output of a model with Schema Mount and --yang-library-file} {
+-setup $ly_setup -cleanup $ly_cleanup -body {
+ ly_cmd "clear -Y $ddir/modsm_ctx_main.xml"
+ ly_cmd "searchpath $mdir"
+ ly_cmd "load modsm"
+ ly_cmd "extdata $ddir/modsm_ctx_ext.xml"
+ ly_cmd "print -f tree modsm" "--mp root.*--rw lfl/.*--rw msa:alf?"
+}}
+
test ext_data_schema_mount_xml {Validating and printing mounted data} {
-setup $ly_setup -cleanup $ly_cleanup -body {
ly_cmd "clear -y"
@@ -42,4 +51,13 @@
ly_cmd "data -f xml -t config $ddir/modsm.xml" "</lfl>"
}}
+test ext_data_schema_mount_xml_yanglibfile {Validating and printing mounted data with --yang-library-file} {
+-setup $ly_setup -cleanup $ly_cleanup -body {
+ ly_cmd "clear -Y $ddir/modsm_ctx_main.xml"
+ ly_cmd "searchpath $mdir"
+ ly_cmd "load modsm"
+ ly_cmd "extdata $ddir/modsm_ctx_ext.xml"
+ ly_cmd "data -f xml -t config $ddir/modsm2.xml" "</lfl>.*</alf>"
+}}
+
cleanupTests