334d872c44845b42bd25662f9a143be4d54e0e4c
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / yang / remote-rpc-connector.yang
1 module remote-rpc-connector {
2         yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:remote-rpc-connector";
4     prefix "remote-rpc-connector";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-dom {prefix dom;}
8
9     description
10         "This module contains the base YANG definitions for
11                  the remote routed rpc";
12
13     revision "2014-07-07" {
14         description
15             "Initial revision";
16     }
17
18     // This is the definition of the service implementation as a module identity.
19     identity remote-rpc-connector {
20       base config:module-type;
21       // Specifies the prefix for generated java classes.
22       config:java-name-prefix RemoteRPCBroker;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case remote-rpc-connector {
27             when "/config:modules/config:module/config:type = 'remote-rpc-connector'";
28
29             container dom-broker {
30                 uses config:service-ref {
31                     refine type {
32                         mandatory true;
33                         config:required-identity dom:dom-broker-osgi-registry;
34                     }
35                 }
36             }
37
38             leaf enable-metric-capture {
39                 default false;
40                 type boolean;
41                 description "Enable or disable metric capture.";
42             }
43
44             leaf actor-system-name {
45                 default odl-cluster-rpc;
46                 type string;
47                 description "Name by which actor system is identified. Its also used to find relevant configuration";
48             }
49
50             leaf bounded-mailbox-capacity {
51                 default 1000;
52                 type uint16;
53                 description "Max queue size that an actor's mailbox can reach";
54             }
55         }
56     }
57
58 }