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%2Ftestfile2.yang;h=1a7b45ecb153e71d33c90036b26e14d2b1fba45d;hb=fbfab4661220d56543ceabbcba5a40b335be1e07;hp=15685f75a1b1c55ac50f608a66f055df7f522fbd;hpb=9cdfa8361e3b4d3e969821aa4de5c4862e22a025;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile2.yang b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile2.yang index 15685f75a1..1a7b45ecb1 100644 --- a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile2.yang +++ b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/test/resources/model/testfile2.yang @@ -3,13 +3,9 @@ module types2 { namespace "urn:simple.types.data.demo"; prefix "t2"; - import types1 { - prefix "if"; - revision-date 2013-02-27; - } - organization "opendaylight"; - contact "WILL-BE-DEFINED-LATER"; + contact "http://www.opendaylight.org/"; + description "This is types-data test description"; revision "2013-02-27" { @@ -109,13 +105,6 @@ module types2 { } } - augment "/if:interfaces/if:ifEntry" { - when "if:ifType='ds0'"; - leaf ds0ChannelNumber { - type string; - } - } - leaf if-name { type leafref { path "/interface/name"; @@ -145,5 +134,46 @@ module types2 { type string; } } + + grouping target { + leaf address { + type string; + description "Target IP address"; + } + container port { + description "Target port container"; + } + } + + container peer { + container destination { + uses target { + refine address { + default "1.2.3.4"; + } + refine port { + must "must-condition" { + error-message "An error message test"; + error-app-tag "An error app tag test"; + } + } + } + } + } + + container interfaces { + list ifEntry { + key "ifIndex"; + + leaf ifIndex { + type uint32; + units minutes; + } + + leaf ifMtu { + type int32; + } + } + } }