3dd4ba1ffb3692ba14e2e98931888e8d58333160
[vpnservice.git] / itm / itm-api / src / main / yang / itm.yang
1 module itm {
2
3     namespace "urn:opendaylight:params:xml:ns:yang:itm";
4
5     prefix itm;
6
7     import ietf-interfaces {
8         prefix if;
9     }
10     import ietf-yang-types {
11         prefix yang;
12     }
13     import ietf-inet-types {
14         prefix inet;
15         revision-date "2010-09-24";
16     }
17     import config { prefix config; revision-date 2013-04-05; }
18
19     description "This YANG module defines tunnel configuration.";
20     revision "2015-07-01";
21
22     /* Configuration data */
23
24     container transport-zones {
25       list transport-zone {
26         key zone-name;
27         leaf zone-name {
28             type string;
29         }
30         leaf tunnel-type {
31              type string;
32         }
33
34         list subnets {
35             key "prefix";
36             leaf prefix {
37                 type inet:ip-prefix;
38             }
39             leaf gateway-ip {
40                 type inet:ip-address;
41             }
42             leaf vlan-id {
43                 type uint16;
44             }
45             list vteps {
46                 key "dpn-id portname";
47                 leaf dpn-id {
48                     type uint64;
49                 }
50                 leaf portname {
51                     type string;
52                 }
53                 leaf ip-address {
54                     type inet:ip-address;
55                 }
56             }
57         }
58       }
59     }
60     identity itm {
61         base "config:service-type";
62         config:java-class "org.opendaylight.vpnservice.itm.api.IITMProvider";
63     }
64 }