Fix issues when persistence enabled
[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     import actor-system-provider-service {prefix actor-system;}
9
10     description
11         "This module contains the base YANG definitions for
12                  the remote routed rpc";
13
14     revision "2014-07-07" {
15         description
16             "Initial revision";
17     }
18
19     // This is the definition of the service implementation as a module identity.
20     identity remote-rpc-connector {
21       base config:module-type;
22       // Specifies the prefix for generated java classes.
23       config:java-name-prefix RemoteRPCBroker;
24     }
25
26     augment "/config:modules/config:module/config:configuration" {
27         case remote-rpc-connector {
28             when "/config:modules/config:module/config:type = 'remote-rpc-connector'";
29
30             container dom-broker {
31                 uses config:service-ref {
32                     refine type {
33                         mandatory true;
34                         config:required-identity dom:dom-broker-osgi-registry;
35                     }
36                 }
37             }
38
39             container actor-system-provider {
40                 uses config:service-ref {
41                     refine type {
42                         mandatory false;
43                         config:required-identity actor-system:actor-system-provider-service;
44                     }
45                 }
46             }
47
48             leaf enable-metric-capture {
49                 default false;
50                 type boolean;
51                 description "Enable or disable metric capture.";
52             }
53
54             leaf bounded-mailbox-capacity {
55                 default 1000;
56                 type uint16;
57                 description "Max queue size that an actor's mailbox can reach";
58             }
59         }
60     }
61
62 }