X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-test%2Fsrc%2Fmain%2Fyang%2Fconfig-test-impl.yang;h=ba5021ea099361fd5d548e318a6448811020177f;hb=d245dda0d7f6e14891af8a3a8f44d20939e00ee4;hp=6245e6197a422e7b6b8496740383fcb1cfda5f61;hpb=9fb64948564e252018f9b1e13e7cea2c92f991aa;p=controller.git 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 6245e6197a..ba5021ea09 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 @@ -7,7 +7,7 @@ module config-test-impl { import config { prefix config; revision-date 2013-04-05; } import ietf-inet-types { prefix inet; revision-date 2010-09-24;} import rpc-context { prefix rpcx; revision-date 2013-06-17; } - + import test-types { prefix tt; revision-date 2013-11-27; } description "Testing IMPL"; @@ -107,6 +107,24 @@ module config-test-impl { type string; } + leaf extended { + type tt:extend-once; + } + + leaf extended-twice { + type tt:extend-twice; + } + + leaf extended-enum { + type tt:extend-enum; + } + + leaf sleep-factor { + type decimal64 { + fraction-digits 2; + } + } + container dto-c { leaf simple-arg { type uint32; @@ -291,11 +309,16 @@ module config-test-impl { config:inner-state-bean; rpcx:rpc-context-instance "inner-inner-test-rpc"; + rpcx:rpc-context-instance "complex-output-rpc"; key "simple-int3"; leaf simple-int3 { - type uint16; + type uint16; + } + + leaf-list list-of-strings { + type string; } list not-state-bean { @@ -327,6 +350,8 @@ module config-test-impl { identity inner-test-rpc; identity inner-inner-test-rpc; + identity complex-output-rpc; + rpc no-arg { input { uses rpcx:rpc-context-ref { @@ -346,6 +371,66 @@ module config-test-impl { } } + rpc container-output { + input { + uses rpcx:rpc-context-ref { + refine context-instance { + rpcx:rpc-context-instance complex-output-rpc; + } + } + } + + output { + container retValContainer { + leaf v1 { + type string; + } + + leaf v2 { + type uint32; + } + } + } + } + + rpc leaf-list-output { + input { + uses rpcx:rpc-context-ref { + refine context-instance { + rpcx:rpc-context-instance complex-output-rpc; + } + } + } + + output { + leaf-list result { + type string; + } + } + } + + rpc list-output { + input { + uses rpcx:rpc-context-ref { + refine context-instance { + rpcx:rpc-context-instance complex-output-rpc; + } + } + } + + output { + list ret-val-list { + leaf v2 { + type uint32; + } + + leaf v1 { + type boolean; + } + } + } + } + rpc noArgInner { input { uses rpcx:rpc-context-ref {