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;fp=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fyang-model-parser-impl%2Fsrc%2Ftest%2Fresources%2Fmodel%2Ftestfile1.yang;h=619a5c3e104a1ecd3dcc331ee235a3647cd47ebd;hb=0f393657ea0987d02556ea6e2a367d492a8e5a04;hp=2f4355390bf65dc4b66cab51fb04ee45cf4ac06b;hpb=63680b9ec12d28383e544cdfc3af0599419d19d4;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..619a5c3e10 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 @@ -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,16 @@ 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"; + } + } } }