BUG-4688: switch revisions from Date to Revision
[yangtools.git] / yang / yang-data-impl / src / test / resources / org / opendaylight / yangtools / yang / data / impl / schema / test.yang
index 4ad6e786259c47e91d38fc490ef6c767dfcf4634..b39298eebd36dc80f22d75f59ee395c2f25ffce4 100644 (file)
@@ -6,11 +6,17 @@ module test {
 
     organization "Cisco Systems, Inc.";
 
-    revision "2013-2-21" {
+    revision "2014-03-13" {
         description
             "Initial revision";
     }
 
+    identity a {}
+
+    identity b {
+        base "test:a";
+    }
+
     grouping listGroup {
         list list {
             key "uint32InList";
@@ -26,6 +32,24 @@ module test {
                 leaf uint16 {
                     type uint16;
                 }
+
+                leaf identityr {
+                    type identityref {
+                        base "test:a";
+                     }
+                }
+
+                leaf uint16-ref {
+                    type leafref {
+                        path "../uint16";
+                     }
+                }
+
+                leaf instance-id {
+                    type instance-identifier;
+                }
+
+                anyxml anyX;
             }
         }
      }
@@ -72,7 +96,33 @@ module test {
             type string;
         }
 
-        uses listGroup;
+        uses listGroup {
+            augment "list/" {
+                leaf stringAugmentedToList{
+                    type string;
+                }
+
+                choice choiceInList {
+                    case caseInList1 {
+                        leaf stringAugmentedToListInCase1 {
+                            type string;
+                        }
+                    }
+                    case caseInList2 {
+                        leaf stringAugmentedToListInCase2 {
+                            type string;
+                        }
+                    }
+                }
+            }
+        }
+
+        list directList {
+            leaf stringInDirectList {
+                type string;
+            }
+        }
+
         uses innerContainerGrouping;
 
         choice choice{}
@@ -101,6 +151,12 @@ module test {
         }
     }
 
+    augment "/container/directList/" {
+        leaf augmentedString {
+            type uint32;
+        }
+    }
+
     augment "/container/choice/" {
         case test-identity-augment {
             when "/container/identityRef = 'test-identity'";
@@ -124,6 +180,32 @@ module test {
         }
     }
 
+    augment "/container/choice/test-identity-augment/" {
+
+        choice augmentedChoiceInCase {
+
+            case augmentedCaseInAugmentedChoice {
+                leaf stringInAugmentedCaseInAugmentedChoice {
+                    type string;
+                }
+            }
+
+            case augmentedCaseInAugmentedChoice2 {
+                leaf stringInAugmentedCaseInAugmentedChoice2 {
+                    type string;
+                }
+            }
+        }
+    }
+
+    augment "/container/choice/test-identity-augment/augmentedChoiceInCase/" {
+        case augmentedCaseInAugmentedChoiceFromAugment {
+            leaf stringInAugmentedCaseInAugmentedChoiceFromAugment {
+                type string;
+            }
+        }
+    }
+
     augment "/container/choice2/" {
         case test-identity-augment {
             when "/container/identityRef = 'test-identity'";
@@ -144,9 +226,24 @@ module test {
     }
 
 
+    augment "/container/choice2/test-identity-augment2/augmentedList/" {
+
+        container augmentedContainerInAugmentedListInAugmentedCase {
+            leaf-list leafInAugmentedContainerInAugmentedListInAugmentedCase {
+                type uint32;
+            }
+        }
+
+        list augmentedListInAugmentedListInAugmentedCase {
+            leaf-list leafInAugmentedListInAugmentedListInAugmentedCase {
+                    type uint32;
+                }
+        }
+    }
+
     identity test-identity {}
     identity test-identity2 {
         base test-identity;
     }
 
-}
\ No newline at end of file
+}