Step 1: Move vm scripts to the right place
[integration/test.git] / test / tools / odl-mdsal-clustering-tests / clustering-test-app / provider / src / main / yang / clustering-it-provider.yang
1 module clustering-it-provider {
2
3     yang-version 1;
4     namespace "urn:opendaylight:params:xml:ns:yang:controller:config:clustering-it-provider";
5     prefix "clustering-it-provider";
6
7     import config { prefix config; revision-date 2013-04-05; }
8     import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
9
10     description
11         "This module contains the base YANG definitions for
12         clustering-it-provider implementation.";
13
14     revision "2014-08-19" {
15         description
16             "Initial revision.";
17     }
18
19     // This is the definition of the service implementation as a module identity.
20     identity clustering-it-provider {
21             base config:module-type;
22
23             // Specifies the prefix for generated java classes.
24             config:java-name-prefix ClusteringItProvider;
25     }
26
27     // Augments the 'configuration' choice node under modules/module.
28     augment "/config:modules/config:module/config:configuration" {
29         case clustering-it-provider {
30             when "/config:modules/config:module/config:type = 'clustering-it-provider'";
31
32             container rpc-registry {
33                 uses config:service-ref {
34                     refine type {
35                         mandatory true;
36                         config:required-identity mdsal:binding-rpc-registry;
37                     }
38                 }
39             }
40
41             container notification-service {
42                 uses config:service-ref {
43                     refine type {
44                         mandatory true;
45                         config:required-identity mdsal:binding-notification-service;
46                     }
47                 }
48             }
49
50             container data-broker {
51                 uses config:service-ref {
52                     refine type {
53                         mandatory false;
54                         config:required-identity mdsal:binding-async-data-broker;
55                     }
56                 }
57             }
58         }
59     }
60 }