X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Ftest%2Fresources%2Fcnsn-to-xml%2Fyang%2Fbasic-module.yang;h=9c61d47b1fb6add79ea8ad0a9e82b0dc799b3aab;hp=7023c94f2f0df55d00efaf6c675629a184deba78;hb=a7842184fd72e91ae17c561a444d87aac5e94a4f;hpb=9212fed678702583f4a555641208cf1c7b45b829 diff --git a/opendaylight/md-sal/sal-rest-connector/src/test/resources/cnsn-to-xml/yang/basic-module.yang b/opendaylight/md-sal/sal-rest-connector/src/test/resources/cnsn-to-xml/yang/basic-module.yang index 7023c94f2f..9c61d47b1f 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/test/resources/cnsn-to-xml/yang/basic-module.yang +++ b/opendaylight/md-sal/sal-rest-connector/src/test/resources/cnsn-to-xml/yang/basic-module.yang @@ -1,96 +1,106 @@ module basic-module { - namespace "basic:module"; - - prefix "basmod"; - - import referenced-module {prefix refmo; revision-date 2013-12-2;} - - revision 2013-12-2 { - } - - container cont { - container cont1 { - leaf lf11 { - type identityref { - base "refmo:iden"; - } - } - } - leaf lfStr { - type string; - } - leaf lfInt8 { - type int8; - } - - leaf lfInt16 { - type int16; - } - - leaf lfInt32 { - type int32; - } - - leaf lfInt64 { - type int64; - } - - leaf lfUint8 { - type uint8; - } - - leaf lfUint16 { - type uint16; - } - - leaf lfUint32 { - type uint32; - } - - leaf lfUint64 { - type uint64; - } - - leaf lfBinary { - type binary; - } - - leaf lfBits { - type bits { - bit one; - bit two; - bit three; - } - } - - leaf lfEnumeration { - type enumeration { - enum enum1; - enum enum2; - enum enum3; - } - } - - leaf lfEmpty { - type empty; - } - - leaf lfBoolean { - type boolean; - } - - leaf lfUnion { - type union { - type int8; - type string; - type bits { - bit first; - bit second; - } - type boolean; - } - } - - } - -} \ No newline at end of file + namespace "basic:module"; + + prefix "basmod"; + + import referenced-module {prefix refmo; revision-date 2013-12-2;} + + revision 2013-12-2 { + } + + container cont { + container cont1 { + leaf lf11 { + type identityref { + base "refmo:iden"; + } + } + } + leaf lfStr { + type string; + } + leaf lfInt8 { + type int8; + } + + leaf lfInt16 { + type int16; + } + + leaf lfInt32 { + type int32; + } + + leaf lfInt64 { + type int64; + } + + leaf lfUint8 { + type uint8; + } + + leaf lfUint16 { + type uint16; + } + + leaf lfUint32 { + type uint32; + } + + leaf lfUint64 { + type uint64; + } + + leaf lfBinary { + type binary; + } + + leaf lfBits { + type bits { + bit one; + bit two; + bit three; + } + } + + leaf lfEnumeration { + type enumeration { + enum enum1; + enum enum2; + enum enum3; + } + } + + leaf lfEmpty { + type empty; + } + + leaf lfBoolean { + type boolean; + } + + leaf lfUnion { + type union { + type int8; + type string; + type bits { + bit first; + bit second; + } + type boolean; + } + } + + leaf lfLfref { + type leafref { + path "/cont/lfBoolean"; + } + } + + leaf lfInIdentifier { + type instance-identifier; + } + + } + +}