Fix YANG patch request for augmented element
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / resources / instanceidentifier / yang / test-model-aug.yang
diff --git a/restconf/restconf-nb-rfc8040/src/test/resources/instanceidentifier/yang/test-model-aug.yang b/restconf/restconf-nb-rfc8040/src/test/resources/instanceidentifier/yang/test-model-aug.yang
new file mode 100644 (file)
index 0000000..21445ca
--- /dev/null
@@ -0,0 +1,29 @@
+module test-m-aug {\r
+  namespace "test-ns-aug";\r
+  prefix test-m;\r
+\r
+  import test-m {\r
+    prefix tm;\r
+  }\r
+\r
+  augment /tm:container-root/tm:container-lvl1 {\r
+    container container-aug {\r
+      leaf leaf-aug {\r
+        type string;\r
+      }\r
+\r
+      list list-aug {\r
+        key list-aug-key;\r
+        leaf list-aug-key {\r
+          type string;\r
+        }\r
+\r
+        container list-aug-container {\r
+          leaf foo {\r
+            type string;\r
+          }\r
+        }\r
+      }\r
+    }\r
+  }\r
+}\r