DHCP Handling for TOR VM
[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     import opendaylight-entity-ownership-service { prefix eos; revision-date 2015-08-10;}
11
12     description
13         "Service definition for dhcpservice project";
14
15     revision "2015-07-10" {
16         description
17             "Initial revision";
18     }
19
20     identity dhcpservice-impl {
21         base config:module-type;
22         config:java-name-prefix DhcpServiceImpl;
23     }
24
25     augment "/config:modules/config:module/config:configuration" {
26         case dhcpservice-impl {
27             when "/config:modules/config:module/config:type = 'dhcpservice-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 rpcregistry {
37                 uses config:service-ref {
38                     refine type {
39                         mandatory true;
40                         config:required-identity md-sal-binding:binding-rpc-registry;
41                     }
42                 }
43             }
44             container notification-service {
45                 uses config:service-ref {
46                     refine type {
47                         mandatory true;
48                         config:required-identity md-sal-binding:binding-notification-service;
49                     }
50                 }
51             }
52
53             container mdsalutil {
54                 uses config:service-ref {
55                     refine type {
56                         mandatory true;
57                         config:required-identity odl-mdsal:odl-mdsalutil;
58                     }
59                 }
60             }
61
62             container neutronvpn {
63                 uses config:service-ref {
64                     refine type {
65                         mandatory true;
66                         config:required-identity nvpn:neutronvpn-api;
67                     }
68                 }
69             }
70
71             container entity-ownership-service {
72                 uses config:service-ref {
73                     refine type {
74                         mandatory true;
75                         config:required-identity eos:entity-ownership-service;
76                     }
77                 }
78             }
79         }
80     }
81 }