Merge "Bug 2538: Remove redundant Augmentation checks and tests"
[controller.git] / opendaylight / md-sal / messagebus-impl / src / main / yang / messagebus-app-impl.yang
1 module messagebus-app-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:messagebus:app:impl";
4     prefix "binding-impl";
5
6     import config { prefix config; revision-date 2013-04-05; }
7     import opendaylight-md-sal-binding {prefix sal;}
8     import opendaylight-md-sal-dom {prefix dom;}
9
10
11     description
12         "Service definition for Message Bus application implementation.";
13  
14     revision "2015-02-03" {
15         description "Second revision. Message Bus opensourcing";
16     }
17
18     identity messagebus-app-impl {
19         base config:module-type;
20         config:java-name-prefix MessageBusAppImpl;
21     }
22     
23     augment "/config:modules/config:module/config:configuration" {
24         case messagebus-app-impl {
25             when "/config:modules/config:module/config:type = 'messagebus-app-impl'";
26             
27             container binding-broker {
28                 uses config:service-ref {
29                     refine type {
30                         mandatory true;
31                         config:required-identity sal:binding-broker-osgi-registry;
32                     }
33                 }
34             }
35
36             container dom-broker {
37                 uses config:service-ref {
38                     refine type {
39                         mandatory true;
40                         config:required-identity dom:dom-broker-osgi-registry;
41                     }
42                 }
43             }
44
45             list namespace-to-stream {
46                 key urn-prefix;
47
48                 leaf urn-prefix {
49                     type string;
50                 }
51
52                 leaf stream-name {
53                     type string;
54                 }
55             }
56         }
57     }
58     
59     augment "/config:modules/config:module/config:state" {
60         case messagebus-app-impl {
61             when "/config:modules/config:module/config:type = 'messagebus-app-impl'";
62         }
63     }
64 }