Fixed bug in resolving groupings.
[yangtools.git] / yang / yang-parser-impl / src / test / resources / augment-test / augment-in-augment / bar.yang
diff --git a/yang/yang-parser-impl/src/test/resources/augment-test/augment-in-augment/bar.yang b/yang/yang-parser-impl/src/test/resources/augment-test/augment-in-augment/bar.yang
new file mode 100644 (file)
index 0000000..733e100
--- /dev/null
@@ -0,0 +1,49 @@
+module bar {
+    yang-version 1;
+    namespace "urn:opendaylight.bar";
+    prefix "bar";
+
+    organization "opendaylight";
+    contact "http://www.opendaylight.org/";
+
+    revision "2013-10-14" {
+        reference " WILL BE DEFINED LATER";
+    }
+
+    container interfaces {
+        grouping ifEntry {
+            container augment-holder;
+        }
+        list ifEntry {
+            key "ifIndex";
+
+            leaf ifIndex {
+                type uint32;
+                units minutes;
+            }
+
+            leaf ifMtu {
+                type int32;
+            }
+
+            min-elements 1;
+            max-elements 11;
+        }
+    }
+
+    container controller {
+        choice switch {
+            case start {
+                leaf start {
+                    type int8;
+                }
+            }
+            case stop {
+                leaf stop {
+                    type int16;
+                }
+            }
+        }
+    }
+
+}