X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-data-impl%2Fsrc%2Ftest%2Fresources%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fdata%2Fimpl%2Fschema%2Ftest.yang;h=b39298eebd36dc80f22d75f59ee395c2f25ffce4;hb=b212baa59f859732bd3a799425bb420035fe6154;hp=4ad6e786259c47e91d38fc490ef6c767dfcf4634;hpb=e1a552dd80582386a8fc46a2a28060b45a88d3c0;p=yangtools.git diff --git a/yang/yang-data-impl/src/test/resources/org/opendaylight/yangtools/yang/data/impl/schema/test.yang b/yang/yang-data-impl/src/test/resources/org/opendaylight/yangtools/yang/data/impl/schema/test.yang index 4ad6e78625..b39298eebd 100644 --- a/yang/yang-data-impl/src/test/resources/org/opendaylight/yangtools/yang/data/impl/schema/test.yang +++ b/yang/yang-data-impl/src/test/resources/org/opendaylight/yangtools/yang/data/impl/schema/test.yang @@ -6,11 +6,17 @@ module test { organization "Cisco Systems, Inc."; - revision "2013-2-21" { + revision "2014-03-13" { description "Initial revision"; } + identity a {} + + identity b { + base "test:a"; + } + grouping listGroup { list list { key "uint32InList"; @@ -26,6 +32,24 @@ module test { leaf uint16 { type uint16; } + + leaf identityr { + type identityref { + base "test:a"; + } + } + + leaf uint16-ref { + type leafref { + path "../uint16"; + } + } + + leaf instance-id { + type instance-identifier; + } + + anyxml anyX; } } } @@ -72,7 +96,33 @@ module test { type string; } - uses listGroup; + uses listGroup { + augment "list/" { + leaf stringAugmentedToList{ + type string; + } + + choice choiceInList { + case caseInList1 { + leaf stringAugmentedToListInCase1 { + type string; + } + } + case caseInList2 { + leaf stringAugmentedToListInCase2 { + type string; + } + } + } + } + } + + list directList { + leaf stringInDirectList { + type string; + } + } + uses innerContainerGrouping; choice choice{} @@ -101,6 +151,12 @@ module test { } } + augment "/container/directList/" { + leaf augmentedString { + type uint32; + } + } + augment "/container/choice/" { case test-identity-augment { when "/container/identityRef = 'test-identity'"; @@ -124,6 +180,32 @@ module test { } } + augment "/container/choice/test-identity-augment/" { + + choice augmentedChoiceInCase { + + case augmentedCaseInAugmentedChoice { + leaf stringInAugmentedCaseInAugmentedChoice { + type string; + } + } + + case augmentedCaseInAugmentedChoice2 { + leaf stringInAugmentedCaseInAugmentedChoice2 { + type string; + } + } + } + } + + augment "/container/choice/test-identity-augment/augmentedChoiceInCase/" { + case augmentedCaseInAugmentedChoiceFromAugment { + leaf stringInAugmentedCaseInAugmentedChoiceFromAugment { + type string; + } + } + } + augment "/container/choice2/" { case test-identity-augment { when "/container/identityRef = 'test-identity'"; @@ -144,9 +226,24 @@ module test { } + augment "/container/choice2/test-identity-augment2/augmentedList/" { + + container augmentedContainerInAugmentedListInAugmentedCase { + leaf-list leafInAugmentedContainerInAugmentedListInAugmentedCase { + type uint32; + } + } + + list augmentedListInAugmentedListInAugmentedCase { + leaf-list leafInAugmentedListInAugmentedListInAugmentedCase { + type uint32; + } + } + } + identity test-identity {} identity test-identity2 { base test-identity; } -} \ No newline at end of file +}