Support for SNAT and DNAT features in L3 forwarding services.
[vpnservice.git] / vpnmanager / vpnmanager-api / src / main / yang / vpn-rpc.yang
diff --git a/vpnmanager/vpnmanager-api/src/main/yang/vpn-rpc.yang b/vpnmanager/vpnmanager-api/src/main/yang/vpn-rpc.yang
new file mode 100644 (file)
index 0000000..ec78fc1
--- /dev/null
@@ -0,0 +1,39 @@
+module vpn-rpc {\r
+    namespace "urn:opendaylight:vpnservice:vpn:rpc";\r
+    prefix "vpn-rpc";\r
+\r
+    revision "2016-02-01" {\r
+        description "VPN Service RPC Module";\r
+    }\r
+\r
+    /* RPCs */\r
+\r
+    rpc generate-vpn-label {\r
+        description "to generate label for the given ip prefix from the associated VPN";\r
+        input {\r
+            leaf vpn-name {\r
+                type string;\r
+            }\r
+            leaf ip-prefix {\r
+                type string;\r
+            }\r
+        }\r
+        output {\r
+            leaf label {\r
+                type uint32;\r
+            }\r
+        }\r
+    }\r
+\r
+    rpc remove-vpn-label {\r
+        description "to remove label for the given ip prefix from the associated VPN";\r
+        input {\r
+            leaf vpn-name {\r
+                type string;\r
+            }\r
+            leaf ip-prefix {\r
+                type string;\r
+            }\r
+        }\r
+    }\r
+}
\ No newline at end of file