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;
}
}
- deviation "/test-container/test-leaf-list" {
+ deviation "/fimp:test-container/fimp:test-leaf-list" {
deviate add {
max-elements 12;
}
}
}
- 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