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";
72 uses action:action-list;
76 rpc get-egress-instructions-for-interface {
77 description "used to retrieve flow instructions to use from interface name";
84 uses offlow:instruction-list;
88 rpc get-endpoint-ip-for-dpn {
89 description "to get the local ip of the tunnel/trunk interface";
102 rpc get-interface-type {
103 description "to get the type of the interface(vlan/vxlan or gre)";
110 leaf interface-type {
112 base if:interface-type;
118 rpc get-tunnel-type {
119 description "to get the type of the tunnel interface(vxlan or gre)";
128 base odlif:tunnel-type-base;
135 rpc get-nodeconnector-id-from-interface {
136 description "to get nodeconnector id associated with an interface";
143 leaf nodeconnector-id {
144 type inv:node-connector-id;
149 rpc get-interface-from-if-index {
150 description "to get interface associated with an if-index";
157 leaf interface-name {
163 rpc create-terminating-service-actions {
164 description "create the ingress terminating service table entries";
172 leaf interface-name {
175 uses offlow:instruction-list;
179 rpc remove-terminating-service-actions {
180 description "remove the ingress terminating service table entries";
185 leaf interface-name {