Fixing issues with ARP integration of VpnService
[vpnservice.git] / itm / itm-api / src / main / yang / itm-rpc.yang
1 module itm-rpc {
2     namespace "urn:opendaylight:params:xml:ns:yang:itm:rpcs";
3     prefix "itmrpcs";
4
5     import ietf-inet-types {
6         prefix inet;
7         revision-date "2010-09-24";
8     }
9
10     import ietf-yang-types {
11               prefix yang;
12       }
13
14     import ietf-interfaces {
15         prefix if; revision-date 2014-05-08;
16     }
17
18     revision "2015-12-17" {
19         description "ODL Specific Itm Manager Rpcs Module";
20     }
21
22     /* RPCs */
23
24     rpc get-tunnel-interface-id {
25         description "used to retrieve tunnel interface id between Dpns";
26         input {
27             leaf source-dpid {
28             type uint64;
29             }
30             leaf destination-dpid {
31             type uint64;
32             }
33         }
34         output {
35             leaf interfaceid {
36                 type uint16;
37             }
38         }
39     }
40
41     rpc build-tunnel-from-dpn-to-dcgateway {
42         description "used for building tunnels between a Dpn and DC Gateway";
43         input {
44             leaf dpid {
45             type uint64;
46             }
47             leaf dcgwyid {
48             type inet:ip-address;
49             }
50         }
51      }
52
53      rpc build-tunnel-to-dcgateway {
54         description "used for building tunnels between teps on all Dpns and DC Gateway";
55         input {
56             leaf dcgwyid {
57             type inet:ip-address;
58             }
59         }
60      }
61 }