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