X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fyang-model-parser-impl%2Fsrc%2Ftest%2Fresources%2Fmodel%2Ftestfile1.yang;h=f6bc34d1b609eea9c9616d7f3e2585a0b757a098;hb=756b3a862090ac60968d6ea33b516964e0f24a48;hp=2f4355390bf65dc4b66cab51fb04ee45cf4ac06b;hpb=69bbdbb02e3f4755b95fa62b9a3610a3a11c9724;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang index 2f4355390b..f6bc34d1b6 100644 --- a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang +++ b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile1.yang @@ -22,7 +22,7 @@ module types1 { leaf testleaf { type data:my-type1 { - range "min..max"; + range "12..max"; } } @@ -31,9 +31,9 @@ module types1 { } leaf leaf-with-length { - type data:my-string-type { - length "7..max"; - } + type data:my-string-type { + length "7..max"; + } } leaf test-int-leaf { @@ -55,7 +55,7 @@ module types1 { } leaf union-leaf { - type data:my-union-ext; + type data:my-union-ext; } deviation /data:system/data:user { @@ -66,7 +66,7 @@ module types1 { } leaf nested-union-leaf { - type data:nested-union1; + type data:nested-union1; } leaf custom-union-leaf { @@ -113,6 +113,33 @@ module types1 { leaf ds0ChannelNumber { type string; } + leaf interface-id { + type leafref { + path "/if:interfaces/if:interface/if:name"; + } + } + leaf-list higher-layer-if { + type leafref { + path "/if:interfaces/if:interface/if:higher-layer-if"; + } + } + leaf my-type { + type data:my-type1; + } + container schemas { + } } - + + container mycont { + container innercont { + typedef mytype { + type string; + } + + leaf myleaf { + type mytype; + } + } + } + }