Add codegen support for nested notifications
[mdsal.git] / binding / mdsal-binding-test-model / src / main / yang / opendaylight-test-notification.yang
index 31ec7aed619c84984c69e0d8b23b835b00b839ed..ed3cf36922e4c658b35fd8d1c31b5afa4677156b 100644 (file)
@@ -1,5 +1,5 @@
 module opendaylight-test-notification {
-    yang-version 1;
+    yang-version 1.1;
     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:test:bi:ba:notification";
     prefix "ntf";
 
@@ -22,4 +22,36 @@ module opendaylight-test-notification {
             type uint16;
         }
     }
-}
\ No newline at end of file
+
+    container wood {
+        typedef tree-id {
+            type uint64;
+        }
+
+        grouping tree-fell-properties {
+            // There might have been a mime around, do you care?
+            leaf hit-mime {
+                type boolean;
+            }
+        }
+
+        notification a-tree-fell {
+            leaf tree-id {
+                type tree-id;
+            }
+            uses tree-fell-properties;
+        }
+
+        list tree {
+            leaf id {
+                type tree-id;
+            }
+            key id;
+
+            notification i-fell {
+                uses tree-fell-properties;
+            }
+        }
+    }
+}
+