Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NormalizedNode serialization using protocol buffer
[controller.git]
/
opendaylight
/
md-sal
/
sal-protocolbuffer-encoding
/
src
/
test
/
resources
/
odl-datastore-test.yang
diff --git
a/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang
b/opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang
index 32ec2777ce2fd6c55c47cb6d3602b6e3c1e380e0..38ec700973e423e4217646527090ccc75cc73af9 100644
(file)
--- a/
opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang
+++ b/
opendaylight/md-sal/sal-protocolbuffer-encoding/src/test/resources/odl-datastore-test.yang
@@
-1,33
+1,54
@@
module odl-datastore-test {
yang-version 1;
module odl-datastore-test {
yang-version 1;
- namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:
notification-
test";
- prefix "
notification-test-using-family-model
";
+ namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test";
+ prefix "
store-test
";
- revision "2014-0
4-15
" {
- description "
Family structure created on
";
+ revision "2014-0
3-13
" {
+ description "
Initial revision.
";
}
}
- container
family
{
+ container
test
{
leaf desc {
type string;
}
leaf desc {
type string;
}
- list
children
{
- key
child-number
;
- leaf
child-number
{
+ list
outer-list
{
+ key
id
;
+ leaf
id
{
type uint16;
}
type uint16;
}
- leaf child-name {
- type string;
- }
- list grand-children {
- key grand-child-number;
- leaf grand-child-number {
- type uint16;
+ choice outer-choice {
+ case one {
+ leaf one {
+ type string;
+ }
+ }
+ case two-three {
+ leaf two {
+ type string;
+ }
+ leaf three {
+ type string;
+ }
+ }
+ }
+ list inner-list {
+ key name;
+ leaf name {
+ type string;
}
}
- leaf
grand-child-nam
e {
+ leaf
valu
e {
type string;
}
}
}
type string;
}
}
}
+
+ leaf-list shoe {
+ type string;
+ }
+
+ leaf-list number {
+ type uint8;
+ }
+
}
}
\ No newline at end of file
}
}
\ No newline at end of file