3 namespace "urn:opendaylight:vpnservice:itm:op";
7 import ietf-interfaces {
11 import ietf-yang-types {
15 import ietf-inet-types {
17 revision-date "2010-09-24";
19 import odl-interface {
20 prefix odlif; revision-date "2015-03-31";
24 description "This YANG module defines operation part of the model.";
26 revision "2015-07-01";
28 /* Operational state */
30 identity tep-type-base {
31 description "Base TEP device type";
33 identity tep-type-internal {
35 description "TEP type internal e.g. Compute OVS";
37 identity tep-type-external {
39 description "TEP type external e.g. DC Gateway";
41 identity tep-type-hwvtep {
43 description "TEP type Hwvtep e.g. TOR devices";
49 description "This type is used to refer to an TEP Device Type.";
51 container dpn-endpoints {
65 /* Minimum 1 port. We may for now support only two ports */
66 list tunnel-end-points {
68 key "portname VLAN-ID ip-address tunnel-type"; /* Multiple tunnels on the same physical port but on different VLAN can be supported */
93 base odlif:tunnel-type-base;
102 container tunnel-list {
103 list internal-tunnel {
105 key "source-DPN destination-DPN transport-type";
111 leaf destination-DPN {
114 leaf transport-type {
116 base odlif:tunnel-type-base;
120 /* logical-group interface id */
122 leaf tunnel-interface-name {
128 container external-tunnel-list {
129 list external-tunnel {
131 key "source-device destination-device transport-type";
134 type string; //dpnid or node-id
137 leaf destination-device {
138 type string; //dpn-id or node-id or ip
141 leaf transport-type {
143 base odlif:tunnel-type-base;
146 /* logical-group interface id */
148 leaf tunnel-interface-name {
155 grouping tep-info-attributes {
156 leaf tep-device-type {
162 type string; //dpnid or node-id
165 type inet:ip-address; //dpnid or node-id
169 container tunnels_state {
170 list state-tunnel-list {
171 key "tunnel-interface-name";
172 leaf tunnel-interface-name {
180 uses tep-info-attributes;
183 uses tep-info-attributes;
185 leaf transport-type {
187 base odlif:tunnel-type-base;
192 notification itm-tunnel-build-complete{