Added getParent() method to DataSchemaNode and DataNodeContainer. Fixed Bugs.
[mdsal.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / augment-under-uses / foo.yang
diff --git a/code-generator/binding-java-api-generator/src/test/resources/compilation/augment-under-uses/foo.yang b/code-generator/binding-java-api-generator/src/test/resources/compilation/augment-under-uses/foo.yang
new file mode 100644 (file)
index 0000000..e0d60ac
--- /dev/null
@@ -0,0 +1,51 @@
+module foo {
+    yang-version 1;
+    namespace "urn:opendaylight:foo";
+    prefix "foo";
+
+    import bar { prefix b; revision-date 2013-10-08; }
+
+    revision "2013-10-08" {
+    }
+
+    grouping object {
+        container nodes {
+        }
+    }
+
+    grouping open-object {
+        uses object {
+            augment "nodes" {
+                container links {
+                    leaf id {
+                        type string;
+                    }
+                }
+            }
+        }
+    }
+
+    grouping explicit-route-object {
+        list subobjects {
+            leaf loose {
+                type boolean;
+            }
+            uses b:explicit-route-subobjects {
+                augment "subobject-type" {
+                    case path-key {
+                        container path-key {
+                            uses path-key-subobject;
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    grouping path-key-subobject {
+        leaf path-key {
+            type string;
+        }
+    }
+
+}