b12e10f4374421f4ddb41995fcd9f79b3ee82694
[controller.git] / benchmark / ntfbenchmark / src / main / yang / ntfbenchmark-impl.yang
1 module ntfbenchmark-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:ntfbenchmark:impl";
4     prefix "ntfbenchmark-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 opendaylight-sal-binding-broker-impl {prefix binding-impl; revision-date 2013-10-28;}
9
10     description
11         "Service definition for ntfbenchmark project";
12
13     revision "2014-12-10" {
14         description
15             "Initial revision";
16     }
17
18     identity ntfbenchmark {
19         base config:module-type;
20         config:java-name-prefix Ntfbenchmark;
21     }
22
23     augment "/config:modules/config:module/config:configuration" {
24         case ntfbenchmark {
25             when "/config:modules/config:module/config:type = 'ntfbenchmark'";
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 publish-service {
35                 uses config:service-ref {
36                     refine type {
37                         mandatory true;
38                         config:required-identity binding-impl:binding-new-notification-publish-service;
39                     }
40                 }
41             }
42             container listen-service {
43                 uses config:service-ref {
44                     refine type {
45                         mandatory true;
46                         config:required-identity binding-impl:binding-new-notification-service;
47                     }
48                 }
49             }
50
51         }
52     }
53 }