Implemented ordering of yang module data nodes. Added Comparators utility class.
[controller.git] / opendaylight / sal / yang-prototype / code-generator / yang-model-parser-impl / src / test / resources / model / testfile3.yang
index e67d9c7eed0675efd15b8be638ec997469be3ebc..c507da55e521612178a2bde2aa9f01fbb5b21b4c 100644 (file)
@@ -33,16 +33,30 @@ module types3 {
         }
     }
 
+    augment "/data:interfaces/data:ifEntry" {
+        when "if:ifType='ds2'";
+        container augment-holder2 {
+            description "Description for augment holder";
+        }
+    }
+
+    augment "/data:interfaces/data:ifEntry/t3:augment-holder/t1:schemas" {
+        when "if:leafType='ds1'";
+        leaf linkleaf {
+            type binary;
+        }
+    }
+
     container network {
-           description "network-description";
-           reference "network-reference";
-           status obsolete;
-           config true;
-           presence "some presence text";
-
-               mnt:mountpoint point  {
-               mnt:target-ref target;
+        mnt:mountpoint point {
+            mnt:target-ref target;
         }
+
+        description "network-description";
+        reference "network-reference";
+        status obsolete;
+        config true;
+        presence "some presence text";
     }
 
     feature local-storage {
@@ -51,7 +65,7 @@ module types3 {
              storage (memory, flash or disk) that can be used to
              store syslog messages.";
     }
-    
+
     extension c-define {
         description
             "Takes as argument a name string.
@@ -59,7 +73,7 @@ module types3 {
              #define.";
         argument "name";
     }
-    
+
     notification event {
         leaf event-class {
             type string;
@@ -69,7 +83,7 @@ module types3 {
             type string;
         }
     }
-    
+
     rpc get-config {
         description
           "Retrieve all or part of a specified configuration.";