Support for SNAT and DNAT features in L3 forwarding services.
[vpnservice.git] / fibmanager / fibmanager-api / src / main / yang / fib-rpc.yang
diff --git a/fibmanager/fibmanager-api/src/main/yang/fib-rpc.yang b/fibmanager/fibmanager-api/src/main/yang/fib-rpc.yang
new file mode 100644 (file)
index 0000000..9a76379
--- /dev/null
@@ -0,0 +1,57 @@
+module fib-rpc {\r
+    namespace "urn:opendaylight:vpnservice:fib:rpc";\r
+    prefix "fib-rpc";\r
+\r
+    import ietf-inet-types {\r
+        prefix inet;\r
+        revision-date "2010-09-24";\r
+    }\r
+\r
+    import opendaylight-flow-types {\r
+        prefix offlow;\r
+        revision-date "2013-10-26";\r
+    }\r
+\r
+    revision "2016-01-21" {\r
+        description "FIB Servicer RPC Module";\r
+    }\r
+\r
+    /* RPCs */\r
+\r
+    rpc create-fib-entry {\r
+        description "to install FIB/LFIB/TST routes on specified dpn with given instructions";\r
+        input {\r
+            leaf source-dpid {\r
+                type uint64;\r
+            }\r
+            leaf vpn-name {\r
+                type string;\r
+            }\r
+            leaf service-id {\r
+                type uint32;\r
+            }\r
+            leaf ip-address {\r
+                type string;\r
+            }\r
+            uses offlow:instruction-list;\r
+        }\r
+    }\r
+\r
+    rpc remove-fib-entry {\r
+        description "to remove FIB/LFIB/TST routes from specified dpn";\r
+        input {\r
+            leaf source-dpid {\r
+                type uint64;\r
+            }\r
+            leaf vpn-name {\r
+                type string;\r
+            }\r
+            leaf service-id {\r
+                type uint32;\r
+            }\r
+            leaf ip-address {\r
+                type string;\r
+            }\r
+        }\r
+    }\r
+}
\ No newline at end of file