1 module odl-interface-rpc {
2 namespace "urn:opendaylight:vpnservice:interfacemgr:rpcs";
5 import ietf-inet-types {
10 prefix odlif; revision-date 2015-03-31;
13 import opendaylight-inventory {
14 prefix inv; revision-date 2013-08-19;
17 import ietf-interfaces {
18 prefix if; revision-date 2014-05-08;
21 import opendaylight-action-types {prefix action;}
22 import opendaylight-flow-types {prefix offlow;revision-date "2013-10-26";}
24 revision "2015-10-03" {
25 description "ODL Specific Interface Manager Rpcs Module";
30 rpc get-dpid-from-interface {
31 description "used to retrieve dpid from interface name";
44 rpc get-port-from-interface {
45 description "used to retrieve dpid from interface name";
64 rpc get-egress-actions-for-interface {
65 description "used to retrieve group actions to use from interface name";
73 description "It can be VNI for VxLAN tunnel ifaces, Gre Key for GRE tunnels, etc.";
79 uses action:action-list;
83 rpc get-egress-instructions-for-interface {
84 description "used to retrieve flow instructions to use from interface name";
92 description "It can be VNI for VxLAN tunnel ifaces, Gre Key for GRE tunnels, etc.";
98 uses offlow:instruction-list;
102 rpc get-endpoint-ip-for-dpn {
103 description "to get the local ip of the tunnel/trunk interface";
110 leaf-list local-ips {
111 type inet:ip-address;
116 rpc get-interface-type {
117 description "to get the type of the interface(vlan/vxlan or gre)";
124 leaf interface-type {
126 base if:interface-type;
132 rpc get-tunnel-type {
133 description "to get the type of the tunnel interface(vxlan or gre)";
142 base odlif:tunnel-type-base;
149 rpc get-nodeconnector-id-from-interface {
150 description "to get nodeconnector id associated with an interface";
157 leaf nodeconnector-id {
158 type inv:node-connector-id;
163 rpc get-interface-from-if-index {
164 description "to get interface associated with an if-index";
171 leaf interface-name {
177 rpc create-terminating-service-actions {
178 description "create the ingress terminating service table entries";
186 leaf interface-name {
189 uses offlow:instruction-list;
193 rpc remove-terminating-service-actions {
194 description "remove the ingress terminating service table entries";
199 leaf interface-name {