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 */
101 base odlif:tunnel-type-base;
104 leaf option-of-tunnel {
105 description "Use flow based tunnels for remote-ip";
115 container tunnel-list {
116 list internal-tunnel {
118 key "source-DPN destination-DPN transport-type";
124 leaf destination-DPN {
128 leaf transport-type {
130 base odlif:tunnel-type-base;
134 /* logical-group interface id */
136 leaf-list tunnel-interface-names {
142 container external-tunnel-list {
143 list external-tunnel {
145 key "source-device destination-device transport-type";
148 type string; //dpnid or node-id
151 leaf destination-device {
152 type string; //dpn-id or node-id or ip
155 leaf transport-type {
157 base odlif:tunnel-type-base;
161 /* logical-group interface id */
163 leaf tunnel-interface-name {
170 grouping tep-info-attributes {
171 leaf tep-device-type {
177 type string; //dpnid or node-id
180 type inet:ip-address; //dpnid or node-id
184 typedef tunnel-oper-status {
193 container tunnels_state {
194 list state-tunnel-list {
195 key "tunnel-interface-name";
197 leaf tunnel-interface-name {
205 leaf oper-state { type tunnel-oper-status; }
207 uses tep-info-attributes;
211 uses tep-info-attributes;
214 leaf transport-type {
216 base odlif:tunnel-type-base;
223 notification itm-tunnel-build-complete{