X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Ftest%2Fresources%2Fodl-datastore-test.yang;h=294b001a8509c7469c8714e630b9488baff6440e;hp=c720d5e0cdcc099026b545357c1edc8edb92de41;hb=77f491931ec07f6972869b8cbfa2207857990cec;hpb=e91f646db188494830a8b0d8ece859de8cd33f72 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/test/resources/odl-datastore-test.yang b/opendaylight/md-sal/sal-clustering-commons/src/test/resources/odl-datastore-test.yang index c720d5e0cd..294b001a85 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/test/resources/odl-datastore-test.yang +++ b/opendaylight/md-sal/sal-clustering-commons/src/test/resources/odl-datastore-test.yang @@ -35,27 +35,67 @@ module odl-datastore-test { leaf desc { type string; } + + leaf short-leaf { + type uint16; + } + + leaf biginteger-leaf { + type uint64; + } + + leaf bigdecimal-leaf { + type decimal64 { + fraction-digits 2; + } + } + + leaf boolean-leaf { + type boolean; + } + + leaf byte-leaf { + type uint8; + } + + list unkeyed-list { + leaf name { + type string; + } + } + + choice outer-choice { + case one { + leaf one { + type string; + } + } + case two-three { + leaf two { + type string; + } + leaf three { + type string; + } + } + } + + list ordered-list { + key ordered-list-leaf; + ordered-by user; + + leaf ordered-list-leaf { + type string; + } + } + list outer-list { key id; leaf id { 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 { + + list inner-list { key name; leaf name { type string; @@ -63,6 +103,9 @@ module odl-datastore-test { leaf value { type string; } + + container inner-container { + } } } @@ -115,6 +158,11 @@ module odl-datastore-test { type binary; } + anyxml any { + } + leaf empty-leaf { + type empty; + } } }