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