plugins ext FEATURE initial schema-mount support
Only for XML data for now. Includes lots of other
changes needed to support this extension.
diff --git a/tests/modules/yang/sm.yang b/tests/modules/yang/sm.yang
new file mode 100644
index 0000000..00e9595
--- /dev/null
+++ b/tests/modules/yang/sm.yang
@@ -0,0 +1,41 @@
+module sm {
+ yang-version 1.1;
+ namespace "urn:sm";
+ prefix "sm";
+
+ import ietf-yang-schema-mount {
+ prefix yangmnt;
+ }
+ import ietf-interfaces {
+ prefix if;
+ }
+
+ container root {
+ yangmnt:mount-point "root";
+ }
+ container root2 {
+ yangmnt:mount-point "root";
+ }
+ container root3 {
+ list ls {
+ key name;
+ leaf name {
+ type string;
+ }
+ container mnt-root {
+ yangmnt:mount-point "mnt-root";
+ }
+ }
+ }
+ leaf target {
+ type string;
+ }
+
+ augment /if:interfaces/if:interface {
+ leaf sm-name {
+ type leafref {
+ path "/sm:target";
+ }
+ }
+ }
+}