2 namespace "urn:opendaylight:genius:itm:rpcs";
5 import ietf-inet-types {
7 revision-date "2013-07-15";
10 import odl-interface {
12 revision-date "2016-04-06";
15 import opendaylight-action-types {prefix action;revision-date "2013-11-12";}
16 import opendaylight-flow-types {prefix offlow;revision-date "2013-10-26";}
19 revision "2016-04-06" {
20 description "ODL Specific Itm Manager Rpcs Module";
25 rpc get-tunnel-interface-name {
26 description "used to retrieve tunnel interface id between Dpns";
31 leaf destination-dpid {
36 base odlif:tunnel-type-base;
47 rpc get-internal-or-external-interface-name {
48 description "used to retrieve tunnel interface id with src Dpn and destination ip/dpn";
56 leaf destination-dpid {
58 description "Optional. if destination-dpid is abesnt,"
59 + "the destination-ip will be used to get the tunnel name";
63 base odlif:tunnel-type-base;
74 rpc get-external-tunnel-interface-name {
75 description "used to retrieve external tunnel interface id between Dpns/TORs";
80 leaf destination-node {
85 base odlif:tunnel-type-base;
97 rpc build-external-tunnel-from-dpns {
98 description "used for building tunnels between a Dpn and external node";
103 leaf destination-ip {
104 type inet:ip-address;
108 base odlif:tunnel-type-base;
114 rpc add-external-tunnel-endpoint {
115 description "used for building tunnels between teps on all Dpns and external node";
117 leaf destination-ip {
118 type inet:ip-address;
122 base odlif:tunnel-type-base;
128 rpc remove-external-tunnel-from-dpns {
129 description "used for building tunnels between a Dpn and external node";
134 leaf destination-ip {
135 type inet:ip-address;
139 base odlif:tunnel-type-base;
145 rpc remove-external-tunnel-endpoint {
146 description "used for building tunnels between teps on all Dpns and external node";
148 leaf destination-ip {
149 type inet:ip-address;
153 base odlif:tunnel-type-base;
159 rpc create-terminating-service-actions {
160 description "used for programming the terminating service actions";
168 uses offlow:instruction-list;
172 rpc remove-terminating-service-actions {
173 description "used for removing the terminating service actions";
184 rpc add-l2-gw-device {
185 description "used for building tunnels between teps on all Dpns and hwVtep";
194 type inet:ip-address;
199 rpc add-l2-gw-mlag-device {
200 description "used for building tunnels between teps on all Dpns and hwVtep";
209 type inet:ip-address;
214 rpc delete-l2-gw-device {
215 description "used for deleting tunnels between teps on all Dpns and hwVtep";
224 type inet:ip-address;
229 rpc delete-l2-gw-mlag-device {
230 description "used for deleting tunnels between teps on all Dpns and hwVtep";
239 type inet:ip-address;
244 rpc is-tunnel-internal-or-external {
245 description "Used for determining whether tunnel is an internal or an external tunnel";
247 leaf tunnel-interface-name {
258 rpc is-dcgw-present {
259 description "Used for determining whether tunnel is an internal or an external tunnel";
272 rpc get-dpn-endpoint-ips {
273 description "used to retrieve tunnel end point IPs of a Dpn";
280 leaf-list nexthopip-list {
281 type inet:ip-address;
286 rpc get-egress-actions-for-tunnel {
287 description "used to retrieve group actions to use from interface name";
295 description "It can be VNI for VxLAN tunnel ifaces, Gre Key for GRE tunnels, etc.";
301 description "By default action keys are incremented from zero, for custom initial value set action-key";
307 uses action:action-list;
311 rpc get-tunnel-type {
312 description "to get the type of the tunnel interface(vxlan, vxlan-gpe, gre, etc.)";
322 base odlif:tunnel-type-base;
328 rpc set-bfd-param-on-tunnel {
329 description "used for turning ON/OFF to monitor individual tunnels";
335 leaf destination-node {
339 leaf monitoring-enabled {
343 leaf monitoring-interval {
353 description "Gets the dpn id and tep ip information of compute nodes";
355 leaf-list compute-names {
375 type inet:ip-address;
387 rpc get-watch-port-for-tunnel {
388 description "retrieve the watch port for the BFD enabled point to point tunnel";
394 leaf destination-node {