Implemented new RPCs, add/delete int/ext I/f name
[vpnservice.git] / itm / itm-api / src / main / yang / itm-rpc.yang
index 69e1ea9bd8e8111ca46a19f7117f02ea7656b48d..2347e6eb055a472dedc967c4e85e9a7a82f73598 100644 (file)
@@ -47,6 +47,23 @@ module itm-rpc {
         }
     }
 
+    rpc get-internal-or-external-interface-name {
+        description "used to retrieve tunnel interface id with src Dpn and destination ip";
+            input {
+                leaf source-dpid {
+                type uint64;
+                }
+                leaf destination-ip {
+                type inet:ip-address;
+                }
+            }
+            output {
+                leaf interface-name {
+                    type string;
+                }
+        }
+    }
+
     rpc get-external-tunnel-interface-name {
         description "used to retrieve tunnel interface id between Dpns";
         input {
@@ -111,7 +128,7 @@ module itm-rpc {
         }
      }
 
-     rpc remove-external-tunnel-endpoint { 
+     rpc remove-external-tunnel-endpoint {
         description "used for building tunnels between teps on all Dpns and external node";
         input {
             leaf destination-ip {
@@ -129,7 +146,7 @@ module itm-rpc {
          description  "used for programming the terminating service actions";
          input {
              leaf dpn-id {
-               type uint64;  
+               type uint64;
              }
              leaf service-id {
                 type uint16;
@@ -142,7 +159,7 @@ module itm-rpc {
               description  "used for removing the terminating service actions";
               input {
                   leaf dpn-id {
-                    type uint64;  
+                    type uint64;
                   }
                   leaf service-id {
                      type uint16;