creation of tunnel ingress flow and lfib table entries moved to interface
[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     }
16     import config { prefix config; revision-date 2013-04-05; }
17
18     description "This YANG module defines tunnel configuration.";
19     revision "2015-07-01";
20
21     /* Configuration data */
22
23     container transport-zones {
24       list transport-zone {
25         key zone-name;
26         leaf zone-name {
27             type string;
28         }
29         leaf tunnel-type {
30              type string;
31         }
32
33         list subnets {
34             key "prefix";
35             leaf prefix {
36                 type inet:ip-prefix;
37             }
38             leaf gateway-ip {
39                 type inet:ip-address;
40             }
41             leaf vlan-id {
42                 type uint16;
43             }
44             list vteps {
45                 key "dpn-id portname";
46                 leaf dpn-id {
47                     type uint64;
48                 }
49                 leaf portname {
50                     type string;
51                 }
52                 leaf ip-address {
53                     type inet:ip-address;
54                 }
55             }
56         }
57       }
58     }
59     identity itm {
60         base "config:service-type";
61         config:java-class "org.opendaylight.vpnservice.itm.api.IITMProvider";
62     }
63 }