896e5d1ad9b34fbc54d2490ee507c8d99560d097
[vpnservice.git] / itm / itm-impl / src / main / yang / itm-impl.yang
1 module itm-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:itm:impl";
4     prefix "itm-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 md-sal-binding-impl; revision-date 2013-10-28;}
9     import odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
10     import odl-interface {prefix odlif; revision-date 2015-03-31;}
11     import itm { prefix itm; revision-date 2015-07-01;}
12
13     description
14         "Service definition for itm project";
15
16     revision "2014-12-10" {
17         description
18             "Initial revision";
19     }
20
21     identity itm {
22         base config:module-type;
23         config:provided-service itm:itm;
24         config:java-name-prefix Itm;
25     }
26
27     augment "/config:modules/config:module/config:configuration" {
28         case itm {
29             when "/config:modules/config:module/config:type = 'itm'";
30             container broker {
31                 uses config:service-ref {
32                     refine type {
33                         mandatory true;
34                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
35                     }
36                 }
37             }
38             container odlinterface {
39                  uses config:service-ref {
40                      refine type {
41                          mandatory true;
42                          config:required-identity odlif:odl-interface;
43                      }
44                  }
45             }
46             container mdsalutil {
47                     uses config:service-ref {
48                         refine type {
49                             mandatory true;
50                             config:required-identity odl-mdsal:odl-mdsalutil;
51                         }
52                     }
53                 }
54                 container notification-publish-service {
55                     uses config:service-ref {
56                         refine type {
57                             mandatory true;
58                             config:required-identity md-sal-binding-impl:binding-new-notification-publish-service;
59                         }
60                     }
61                 }
62                 container rpcregistry {
63                     uses config:service-ref {
64                         refine type {
65                             mandatory true;
66                             config:required-identity md-sal-binding:binding-rpc-registry;
67                         }
68                     }
69             }
70                 container notification-service {
71                     uses config:service-ref {
72                         refine type {
73                         mandatory true;
74                         config:required-identity md-sal-binding-impl:binding-new-notification-service;
75                     }
76                 }
77             }
78         }
79     }
80 }