DHCP Handling for TOR VM
[vpnservice.git] / dhcpservice / dhcpservice-api / src / main / yang / dhcp.yang
1 module vpnservice-dhcp {
2     namespace "urn:opendaylight:vpnservice:dhcp";
3     prefix "dhcp";
4
5     import ietf-inet-types {
6         prefix inet;
7         revision-date "2010-09-24";
8     }
9
10     revision "2016-04-28" {
11         description "It provides required datastore containers to handle DHCP requests
12                      coming from access or external tunnel ports";
13     }
14
15     container designated-switches-for-external-tunnels {
16         config true;
17         description "contains designated dataplane-node-identifier which handles DHCP requests for each external tunnel";
18         list designated-switch-for-tunnel {
19             key "tunnel-remote-ip-address elan-instance-name";
20             leaf tunnel-remote-ip-address {
21                 description "remote end point ip address of external tunnel";
22                 type inet:ip-address;
23             }
24             leaf elan-instance-name {
25                 description "elan name indicates l2 network domain";
26                 type string;
27             }
28             leaf dpId {
29                 description "contains dataplane-node-identifier";
30                 type int64;
31             }
32         }
33     }
34 }