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;
107 container tunnel-list {
108 list internal-tunnel {
110 key "source-DPN destination-DPN transport-type";
116 leaf destination-DPN {
120 leaf transport-type {
122 base odlif:tunnel-type-base;
126 /* logical-group interface id */
128 leaf tunnel-interface-name {
134 container external-tunnel-list {
135 list external-tunnel {
137 key "source-device destination-device transport-type";
140 type string; //dpnid or node-id
143 leaf destination-device {
144 type string; //dpn-id or node-id or ip
147 leaf transport-type {
149 base odlif:tunnel-type-base;
153 /* logical-group interface id */
155 leaf tunnel-interface-name {
162 grouping tep-info-attributes {
163 leaf tep-device-type {
169 type string; //dpnid or node-id
172 type inet:ip-address; //dpnid or node-id
176 container tunnels_state {
177 list state-tunnel-list {
178 key "tunnel-interface-name";
180 leaf tunnel-interface-name {
190 uses tep-info-attributes;
194 uses tep-info-attributes;
197 leaf transport-type {
199 base odlif:tunnel-type-base;
206 notification itm-tunnel-build-complete{