b1703e2227d693432a7e3c27c52ff5d00a769d7d
[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 odl-mdsalutil { prefix odl-mdsal; revision-date 2015-04-10;}
10     import odl-interface {prefix odlif; revision-date 2015-03-31;}
11
12     description
13         "Service definition for vpnservice project";
14
15     revision "2015-02-16" {
16         description
17             "Initial revision";
18     }
19
20     identity vpnservice-impl {
21         base config:module-type;
22         config:java-name-prefix VpnserviceImpl;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case vpnservice-impl {
27             when "/config:modules/config:module/config:type = 'vpnservice-impl'";
28             container broker {
29                 uses config:service-ref {
30                     refine type {
31                         mandatory true;
32                         config:required-identity md-sal-binding:binding-broker-osgi-registry;
33                     }
34                 }
35             }
36             container bgpmanager {
37                 uses config:service-ref {
38                     refine type {
39                         mandatory true;
40                         config:required-identity bgpmgr-api:bgpmanager-api;
41                     }
42                 }
43             }
44             container mdsalutil {
45                 uses config:service-ref {
46                     refine type {
47                         mandatory true;
48                         config:required-identity odl-mdsal:odl-mdsalutil;
49                     }
50                 }
51             }
52             container odlinterface {
53                 uses config:service-ref {
54                     refine type {
55                         mandatory true;
56                         config:required-identity odlif:odl-interface;
57                     }
58                 }
59             }
60         }
61     }
62 }