Merge "Fixed for bug 1197"
[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     }
39
40 }