Merge "Fix modules Restconf call for mounted devices"
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / yang / opendaylight-md-sal-common.yang
1 module opendaylight-md-sal-common {\r
2         yang-version 1;\r
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:common";\r
4     prefix "md-sal-common";\r
5     \r
6     description\r
7         "Common definition for MD-SAL.";\r
8  \r
9     revision "2013-10-28" {\r
10         description\r
11             "Initial revision";\r
12     }\r
13     \r
14     grouping rpc-routing-table {\r
15         \r
16         leaf routing-context {\r
17             type string;\r
18         }\r
19         list routes {\r
20             leaf path {\r
21                 type string;\r
22             }\r
23             leaf destination {\r
24                 type string;\r
25             }\r
26         }\r
27     \r
28     }\r
29 \r
30     grouping rpc-router {\r
31         leaf module {\r
32             type string;\r
33         }\r
34         container routing-tables {\r
35             list routing-table {\r
36                 uses rpc-routing-table;\r
37             }\r
38         }\r
39     }\r
40 \r
41     grouping rpc-state {\r
42         list rpc-router {\r
43             uses rpc-router;\r
44         }\r
45     }\r
46     \r
47     grouping notification-state {\r
48         container notifications {\r
49             leaf published {\r
50                 type uint32;\r
51             }\r
52         }\r
53     }\r
54     \r
55     grouping data-state {\r
56         container transactions {\r
57             leaf created {\r
58                 type uint32;\r
59             }\r
60             leaf submitted {\r
61                 type uint32;\r
62             }\r
63             leaf successful {\r
64                 type uint32;\r
65             }\r
66             leaf failed {\r
67                 type uint32;\r
68             }\r
69         }\r
70     }\r
71 }