3 namespace "urn:opendaylight:genius:itm:op";
7 import ietf-interfaces {
11 import ietf-yang-types {
15 import ietf-inet-types {
17 revision-date "2013-07-15";
19 import odl-interface {
20 prefix odlif; revision-date "2016-04-06";
24 description "This YANG module defines operation part of the model.";
26 revision "2016-04-06";
28 /* Operational state */
30 identity tep-type-base {
31 description "Base TEP device type";
34 identity tep-type-internal {
36 description "TEP type internal e.g. Compute OVS";
39 identity tep-type-external {
41 description "TEP type external e.g. DC Gateway";
44 identity tep-type-hwvtep {
46 description "TEP type Hwvtep e.g. TOR devices";
53 description "This type is used to refer to an TEP Device Type.";
56 container dpn-endpoints {
70 /* Minimum 1 port. We may for now support only two ports */
71 list tunnel-end-points {
73 key "portname VLAN-ID ip-address tunnel-type"; /* Multiple tunnels on the same physical port but on different VLAN can be supported */
98 base odlif:tunnel-type-base;
101 leaf option-of-tunnel {
102 description "Use flow based tunnels for remote-ip";
112 container tunnel-list {
113 list internal-tunnel {
115 key "source-DPN destination-DPN transport-type";
121 leaf destination-DPN {
125 leaf transport-type {
127 base odlif:tunnel-type-base;
131 /* logical-group interface id */
133 leaf tunnel-interface-name {
139 container external-tunnel-list {
140 list external-tunnel {
142 key "source-device destination-device transport-type";
145 type string; //dpnid or node-id
148 leaf destination-device {
149 type string; //dpn-id or node-id or ip
152 leaf transport-type {
154 base odlif:tunnel-type-base;
158 /* logical-group interface id */
160 leaf tunnel-interface-name {
167 grouping tep-info-attributes {
168 leaf tep-device-type {
174 type string; //dpnid or node-id
177 type inet:ip-address; //dpnid or node-id
181 typedef tunnel-oper-status {
190 container tunnels_state {
191 list state-tunnel-list {
192 key "tunnel-interface-name";
194 leaf tunnel-interface-name {
202 leaf oper-state { type tunnel-oper-status; }
204 uses tep-info-attributes;
208 uses tep-info-attributes;
211 leaf transport-type {
213 base odlif:tunnel-type-base;
220 notification itm-tunnel-build-complete{