Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 8307: Add the option for activating deviation statements
[yangtools.git]
/
yang
/
yang-parser-impl
/
src
/
test
/
resources
/
bugs
/
bug4933
/
correct
/
foo.yang
diff --git
a/yang/yang-parser-impl/src/test/resources/bugs/bug4933/correct/foo.yang
b/yang/yang-parser-impl/src/test/resources/bugs/bug4933/correct/foo.yang
index 282e24245907c1c7bee722b002e2b6ae644fe6d2..0ae8d614522112a09f53629aabf0518e971dbfd4 100644
(file)
--- a/
yang/yang-parser-impl/src/test/resources/bugs/bug4933/correct/foo.yang
+++ b/
yang/yang-parser-impl/src/test/resources/bugs/bug4933/correct/foo.yang
@@
-3,36
+3,29
@@
module foo {
namespace "foo";
prefix foo;
namespace "foo";
prefix foo;
- container my-container {
- leaf-list my-leaf-list {
- type string;
- max-elements 5;
- must "0 != 1";
- }
+ import bar {
+ prefix bar;
}
}
- deviation /
my-container/
my-leaf-list {
+ deviation /
bar:my-container/bar:
my-leaf-list {
deviate add {
min-elements 1;
}
}
deviate add {
min-elements 1;
}
}
- deviation /
my-container/
my-leaf-list {
+ deviation /
bar:my-container/bar:
my-leaf-list {
deviate replace {
max-elements 10;
}
}
deviate replace {
max-elements 10;
}
}
- deviation /
my-container/
my-leaf-list {
+ deviation /
bar:my-container/bar:
my-leaf-list {
deviate delete {
must "0 != 1";
}
}
deviate delete {
must "0 != 1";
}
}
- container my-container2 {
- }
-
- deviation /my-container2 {
+ deviation /bar:my-container2 {
deviate not-supported;
}
}
deviate not-supported;
}
}