Bug 8307: Add the option for activating deviation statements
[yangtools.git] / yang / yang-parser-impl / src / test / resources / deviation-stmt-test / foo.yang
index 2102b9e09ecbe3fd0e3440129743f89493b954a5..bb456735b4629691f202046748b971778bee4cae 100644 (file)
@@ -2,16 +2,21 @@ module foo {
     namespace "foo-namespace";
     prefix "foo-prefix";
 
+    import foo-imp {
+        prefix fimp;
+        revision-date 2016-06-23;
+    }
+
     revision "2016-06-23" {
         description "Initial revision";
     }
 
-    deviation "/test-container/test-leaf" {
+    deviation "/fimp:test-container/fimp:test-leaf" {
         description "test-leaf is not supported";
         deviate not-supported;
     }
 
-    deviation "/test-container/test-leaf-2" {
+    deviation "/fimp:test-container/fimp:test-leaf-2" {
         deviate add {
             default "added-def-val";
             config false;
@@ -19,7 +24,7 @@ module foo {
         }
     }
 
-    deviation "/test-container/test-leaf-list" {
+    deviation "/fimp:test-container/fimp:test-leaf-list" {
         deviate add {
             max-elements 12;
         }
@@ -36,54 +41,10 @@ module foo {
         }
     }
 
-    deviation "/test-container/test-list" {
+    deviation "/fimp:test-container/fimp:test-list" {
         deviate delete {
             unique "list-leaf-1 list-leaf-2";
             unique "list-leaf-3 list-leaf-4";
         }
     }
-
-    container test-container {
-        leaf test-leaf {
-            type string;
-        }
-
-        leaf test-leaf-2 {
-            type string;
-        }
-
-        leaf-list test-leaf-list {
-            type int32;
-            min-elements 3;
-            must "daytime or time";
-            must "time or daytime";
-            units minutes;
-        }
-
-        list test-list {
-            key key-leaf;
-            unique "list-leaf-1 list-leaf-2";
-            unique "list-leaf-3 list-leaf-4";
-
-            leaf key-leaf {
-                type string;
-            }
-
-            leaf list-leaf-1 {
-                type string;
-            }
-
-            leaf list-leaf-2 {
-                type string;
-            }
-
-            leaf list-leaf-3 {
-                type string;
-            }
-
-            leaf list-leaf-4 {
-                type string;
-            }
-        }
-    }
 }
\ No newline at end of file