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