X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fbinding-generator-impl%2Fsrc%2Ftest%2Fresources%2Fsimple-bits-demo.yang;fp=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fbinding-generator-impl%2Fsrc%2Ftest%2Fresources%2Fsimple-bits-demo.yang;h=d7e69d1c4e5093c2bac67cbd45108044534da2e9;hb=f607c4b0b922281f1ddd5fda2e7b49ca67d26ecd;hp=0000000000000000000000000000000000000000;hpb=5ae5c5b1fbeb7cea9337bbb6f075e6b889e5a75d;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/simple-bits-demo.yang b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/simple-bits-demo.yang new file mode 100644 index 0000000000..d7e69d1c4e --- /dev/null +++ b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/simple-bits-demo.yang @@ -0,0 +1,54 @@ +module simple-bits-demo { + + namespace "urn:simple:bits:demo"; + prefix "sbd"; + + organization "OPEN DAYLIGHT"; + contact "http://www.opendaylight.org/"; + + revision 2013-06-11 { + + } + + typedef byte-type { + type bits { + bit first-bit { + position 10; + } + bit second-bit { + position 20; + } + bit third-bit { + position 30; + } + bit forth-bit { + position 40; + } + bit fifth-bit { + position 50; + } + bit sixth-bit { + position 60; + } + bit seventh-bit { + position 70; + } + bit eight-bit { + position 80; + } + + } + + typedef jo { + type uint32; + } + + + container leaf-parent-container { + leaf byte-leaf { + type byte-type; + } + + } + +} \ No newline at end of file