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%2Fbit_and_union_in_leaf.yang;h=b5279b0b6a846c511c3eea72d4d49562d73ba534;hb=refs%2Fchanges%2F68%2F768%2F2;hp=e254dd224f61bb0558c4462c9d5d41416b8c45cd;hpb=89aa11492f3ba5e49857b72e3ec079dd13d9f375;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang index e254dd224f..b5279b0b6a 100644 --- a/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang +++ b/opendaylight/sal/yang-prototype/code-generator/binding-generator-impl/src/test/resources/bit_and_union_in_leaf.yang @@ -1,5 +1,5 @@ module bit-and-union-in-leaf { - + namespace "urn:bit:union:in:leaf"; prefix "sbd"; @@ -7,25 +7,25 @@ module bit-and-union-in-leaf { contact "http://www.opendaylight.org/"; revision 2013-06-26 { - + } - + typedef union-typedef { type union { type string { pattern "[a-g]"; - }; + } type int16; } } - + typedef union-typedef2 { type union { type string; type int16; } } - + container parent-container { leaf bit-leaf { type bits { @@ -34,20 +34,20 @@ module bit-and-union-in-leaf { bit third-bit; } } - + leaf union-leaf { type union { type int32; type string { pattern "[a-z]"; - }; + } type string { - pattern "[0-9]*" - }; + pattern "[0-9]*"; + } type string { pattern "[a-d]*"; pattern "[0-5]*"; - }; + } type uint8; } }