Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added support to generate interfaces from Choices and Cases.
[controller.git]
/
opendaylight
/
sal
/
yang-prototype
/
code-generator
/
yang-model-parser-impl
/
src
/
test
/
resources
/
model
/
testfile1.yang
diff --git
a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
index 4ec69c18b229bb7bc4055bf7140b526c0378da2f..bd8f378ee17b392bb8c7d32764ff992880c6511e 100644
(file)
--- a/
opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
+++ b/
opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang
@@
-22,7
+22,7
@@
module types1 {
leaf testleaf {
type data:my-type1 {
leaf testleaf {
type data:my-type1 {
- range "
min
..max";
+ range "
12
..max";
}
}
}
}
@@
-76,6
+76,13
@@
module types1 {
container transfer {
choice how {
default interval;
container transfer {
choice how {
default interval;
+ container input {
+ }
+ list output {
+ leaf id {
+ type string;
+ }
+ }
case interval {
leaf interval {
type uint16;
case interval {
leaf interval {
type uint16;
@@
-123,6
+130,11
@@
module types1 {
path "/if:interfaces/if:interface/if:higher-layer-if";
}
}
path "/if:interfaces/if:interface/if:higher-layer-if";
}
}
+ leaf my-type {
+ type data:my-type1;
+ }
+ container schemas {
+ }
}
container mycont {
}
container mycont {