2aac44cf474e2222b19b7ffe71bac5cac6767a87
[vpnservice.git] / vpnmanager / vpnmanager-impl / src / main / yang / vpnservice-impl.yang
1 module vpnservice-impl {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:vpnservice:impl";
4     prefix "vpnservice-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 bgpmanager-api { prefix bgpmgr-api; revision-date 2015-04-20;}
9     import vpnmanager-api { prefix vpnmgr-api; revision-date 2015-05-08;}
10     import odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
11     import odl-interface {prefix odlif; revision-date 2015-03-31;}
12
13     description
14         "Service definition for vpnservice project";
15
16     revision "2015-02-16" {
17         description
18             "Initial revision";
19     }
20
21     identity vpnservice-impl {
22         base config:module-type;
23         config:provided-service vpnmgr-api:vpnmanager-api;
24         config:java-name-prefix VpnserviceImpl;
25     }
26
27     augment "/config:modules/config:module/config:configuration" {
28         case vpnservice-impl {
29             when "/config:modules/config:module/config:type = 'vpnservice-impl'";
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 rpcregistry {
39                 uses config:service-ref {
40                     refine type {
41                         mandatory true;
42                         config:required-identity md-sal-binding:binding-rpc-registry;
43                     }
44                 }
45             }
46             container bgpmanager {
47                 uses config:service-ref {
48                     refine type {
49                         mandatory true;
50                         config:required-identity bgpmgr-api:bgpmanager-api;
51                     }
52                 }
53             }
54             container mdsalutil {
55                 uses config:service-ref {
56                     refine type {
57                         mandatory true;
58                         config:required-identity odl-mdsal:odl-mdsalutil;
59                     }
60                 }
61             }
62             container odlinterface {
63                 uses config:service-ref {
64                     refine type {
65                         mandatory true;
66                         config:required-identity odlif:odl-interface;
67                     }
68                 }
69             }
70         }
71     }
72 }