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