X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-test%2Fsrc%2Fmain%2Fyang%2Ftypes%2Ftest-types.yang;h=df8cf9403ca45fa570e1558fa4cf584d9791fc87;hb=1a43f55c49d91816751cec1825c40d0a90f8bd8b;hp=8c086d8aceb1d5ec21c06f398e57fcd46d8bda62;hpb=ad65bbdb5841a166f37b6cbaa6d5c457c5c77f27;p=controller.git diff --git a/opendaylight/config/yang-test/src/main/yang/types/test-types.yang b/opendaylight/config/yang-test/src/main/yang/types/test-types.yang index 8c086d8ace..df8cf9403c 100644 --- a/opendaylight/config/yang-test/src/main/yang/types/test-types.yang +++ b/opendaylight/config/yang-test/src/main/yang/types/test-types.yang @@ -3,6 +3,8 @@ module test-types { namespace "urn:opendaylight:params:xml:ns:yang:controller:config:test:types"; prefix "tt"; + import rpc-context { prefix rpcx; revision-date 2013-06-17; } + description "Types generated for testing"; @@ -18,8 +20,8 @@ module test-types { typedef extend-enum { type enumeration { - enum "ONE"; - enum "TWO"; + enum "one"; + enum "two"; } } @@ -31,4 +33,43 @@ module test-types { } } + + + identity test-identity1 { + + } + + identity test-identity2 { + base test-identity1; + } + + grouping common-operational { + leaf common-stat { + type uint64; + } + // This would not work, since it clashes with identity common-rpc-ctx from test-groups + // Both grouping add the same unknown node "rpcx:rpc-context-instance common-rpc-ctx-three;" + // and we cannot match the unknown node to the grouping that added it + //rpcx:rpc-context-instance common-rpc-ctx-three; + rpcx:rpc-context-instance common-rpc-ctx-three; + } + + //identity common-rpc-ctx; + identity common-rpc-ctx-three; + + rpc common-rpc-three { + input { + uses rpcx:rpc-context-ref { + refine context-instance { + rpcx:rpc-context-instance "common-rpc-ctx-three"; + } + } + } + + output { + leaf output { + type string; + } + } + } }