Merge "ITM module sync-up"
[genius.git] / resourcemanager / resourcemanager-impl / src / main / yang / resourcemanager-impl.yang
1 module resourcemanager-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:genius:resourcemanager:impl";
4     prefix "resourcemanager-impl";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-binding { prefix md-sal-binding; revision-date 2013-10-28;}
8     import odl-mdsalutil { prefix odl-mdsal; revision-date 2016-04-06;}
9
10     description
11         "Service definition for resourcemanager project";
12
13     revision "2016-04-06" {
14         description
15             "Initial revision";
16     }
17
18     identity resourcemanager-impl {
19             base config:module-type;
20             config:java-name-prefix ResourceManagerImpl;
21         }
22
23         augment "/config:modules/config:module/config:configuration" {
24             case resourcemanager-impl {
25                 when "/config:modules/config:module/config:type = 'resourcemanager-impl'";
26                 container broker {
27                     uses config:service-ref {
28                         refine type {
29                             mandatory true;
30                             config:required-identity md-sal-binding:binding-broker-osgi-registry;
31                         }
32                     }
33                 }
34                 container rpc-registry {
35                      uses config:service-ref {
36                           refine type {
37                              mandatory true;
38                              config:required-identity md-sal-binding:binding-rpc-registry;
39                           }
40                      }
41                 }
42                 container mdsalutil {
43                       uses config:service-ref {
44                             refine type {
45                                mandatory true;
46                                config:required-identity odl-mdsal:odl-mdsalutil;
47                             }
48                       }
49                 }
50             }
51         }
52 }