Bug 8307: Add the option for activating deviation statements
[yangtools.git] / yang / yang-parser-impl / src / test / resources / deviation-resolution-test / deviation-add / foo.yang
index af0d925629ee6f9d3c1b7839d9e95d254acd8919..c1edf965f39f0b4f233abe27c694f4db7a22f139 100644 (file)
@@ -3,9 +3,14 @@ module foo {
     prefix foo;
     yang-version 1.1;
 
+    import bar {
+        prefix bar;
+        revision-date 2017-01-20;
+    }
+
     revision 2017-01-20;
 
-    deviation "/my-leaf-list" {
+    deviation "/bar:my-leaf-list" {
         deviate add {
             config false;
             min-elements 5;
@@ -16,41 +21,41 @@ module foo {
         }
     }
 
-    deviation "/my-list" {
+    deviation "/bar:my-list" {
         deviate add {
             unique "my-leaf-a my-leaf-b";
             unique "my-leaf-c my-leaf-d";
         }
     }
 
-    deviation "/my-choice" {
+    deviation "/bar:my-choice" {
         deviate add {
             default c2;
         }
     }
 
-    deviation "/my-rpc/input" {
+    deviation "/bar:my-rpc/bar:input" {
         deviate add {
             must "day or night";
             must "black and white";
         }
     }
 
-    deviation "/my-rpc/output" {
+    deviation "/bar:my-rpc/bar:output" {
         deviate add {
             must "day or night";
             must "black and white";
         }
     }
 
-    deviation "/my-notification" {
+    deviation "/bar:my-notification" {
         deviate add {
             must "day or night";
             must "black and white";
         }
     }
 
-    deviation "/my-anyxml" {
+    deviation "/bar:my-anyxml" {
         deviate add {
             mandatory true;
             foo:custom-property "arg";
@@ -61,71 +66,4 @@ module foo {
     extension custom-property {
         argument name;
     }
-
-    leaf-list my-leaf-list {
-        type int32;
-        default 50;
-    }
-
-    list my-list {
-        key key-leaf;
-
-        leaf key-leaf {
-            type string;
-        }
-
-        leaf my-leaf-a {
-            type string;
-        }
-
-        leaf my-leaf-b {
-            type string;
-        }
-
-        leaf my-leaf-c {
-            type string;
-        }
-
-        leaf my-leaf-d {
-            type string;
-        }
-    }
-
-    choice my-choice {
-        case c1 {
-            leaf c1-leaf {
-                type string;
-                default "heaven";
-            }
-        }
-
-        case c2 {
-            leaf c2-leaf {
-                type string;
-                default "hell";
-            }
-        }
-    }
-
-    rpc my-rpc {
-        input {
-            leaf my-rpc-input-leaf {
-                type string;
-            }
-        }
-
-        output {
-            leaf my-rpc-output-leaf {
-                type string;
-            }
-        }
-    }
-
-    notification my-notification {
-
-    }
-
-    anyxml my-anyxml {
-
-    }
 }
\ No newline at end of file