Allow rpc definition for RuntimeMXBeans to come from groupings
[controller.git] / opendaylight / config / yang-test / src / main / yang / types / test-types.yang
1 module test-types {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:test:types";
4     prefix "tt";
5
6     import rpc-context { prefix rpcx; revision-date 2013-06-17; }
7
8     description
9         "Types generated for testing";
10
11     revision "2013-11-27";
12
13     typedef extend-once {
14         type uint16;
15     }
16
17     typedef extend-twice {
18         type extend-once;
19     }
20
21     typedef extend-enum {
22         type enumeration {
23             enum "ONE";
24             enum "TWO";
25         }
26     }
27
28       typedef unionTest {
29         type union {
30           type string;
31           type uint32;
32           type extend-twice;
33         }
34       }
35
36
37
38     identity test-identity1 {
39
40     }
41
42     identity test-identity2 {
43         base test-identity1;
44     }
45
46     grouping common-operational {
47        leaf common-stat {
48            type uint64;
49        }
50        // This would not work, since it clashes with identity common-rpc-ctx from test-groups
51        // Both grouping add the same unknown node "rpcx:rpc-context-instance common-rpc-ctx-three;"
52        // and we cannot match the unknown node to the grouping that added it
53        //rpcx:rpc-context-instance common-rpc-ctx-three;
54        rpcx:rpc-context-instance common-rpc-ctx-three;
55     }
56
57     //identity common-rpc-ctx;
58     identity common-rpc-ctx-three;
59
60     rpc common-rpc-three {
61         input {
62             uses rpcx:rpc-context-ref {
63                 refine context-instance {
64                     rpcx:rpc-context-instance "common-rpc-ctx-three";
65                 }
66             }
67         }
68
69         output {
70             leaf output {
71                 type string;
72             }
73         }
74     }
75 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.