X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-test%2Fsrc%2Fmain%2Fyang%2Fconfig-test-impl.yang;h=6ee379623bf128216a8328e5533918b9d543fb27;hp=f7cea0a52abbb0b46edb5b431d140dc4482fe76d;hb=5a33a4fe140497f02177963131a128e4852f637a;hpb=ff42855d9de0ab5e8c409ccde914e6f501676ddb diff --git a/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang b/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang index f7cea0a52a..6ee379623b 100644 --- a/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang +++ b/opendaylight/config/yang-test/src/main/yang/config-test-impl.yang @@ -35,6 +35,69 @@ module config-test-impl { config:java-name-prefix NetconfTestImpl; } + identity impl-identity-test { + base config:module-type; + config:provided-service test:testing; + config:java-name-prefix IdentityTest; + } + + identity test-identity1 { + + } + + identity test-identity2 { + base test-identity1; + } + + augment "/config:modules/config:module/config:configuration" { + case impl-identity-test { + when "/config:modules/config:module/config:type = 'impl-identity-test'"; + + leaf afi { + type identityref { + base test-identity1; + } + } + + container identities-container { + leaf afi { + type identityref { + base test-identity1; + } + } + } + + list identities { + leaf afi { + type identityref { + base test-identity1; + } + } + leaf safi { + type identityref { + base test-identity1; + } + } + + container identities-inner { + leaf afi { + type identityref { + base test-identity1; + } + } + } + } + + } + } + + augment "/config:modules/config:module/config:state" { + case impl-identity-test { + when "/config:modules/config:module/config:type = 'impl-identity-test'"; + + } + } + augment "/config:modules/config:module/config:configuration" { case impl {