Implemented refine statement parsing.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile2.yang
index 0126671b359d1c9d432ad940d34a43c407485b29..34afea6bda4fd968fbd3573fe0eae8a2ec6f5b39 100644 (file)
@@ -8,7 +8,7 @@ module types2 {
          revision-date 2013-02-27;
      }
 
-    organization "OPEN DAYLIGHT";
+    organization "opendaylight";
     contact "http://www.opendaylight.org/";
     
     description "This is types-data test description";
@@ -146,5 +146,46 @@ module types2 {
             type string;
         }
     }
+    
+    grouping target {
+        leaf address {
+            type string;
+            description "Target IP address";
+        }
+        container port {
+            description "Target port container";
+        }
+    }
+
+    container peer {
+        container destination {
+            uses target {
+                refine address {
+                    default "1.2.3.4";
+                }
+                refine port {
+                    must "must-condition" {
+                        error-message "An error message test";
+                        error-app-tag "An error app tag test";
+                    }
+                }
+            }
+        }
+    }
+    
+    container interfaces {
+         list ifEntry {
+             key "ifIndex";
+
+             leaf ifIndex {
+                 type uint32;
+                 units minutes;
+             }
+             
+             leaf ifMtu {
+                 type int32;
+             }
+         }
+    }
 
 }