Integration of vpnintent bundle functionality
[vpnservice.git] / vpnintent / api / src / main / yang / vpnintent.yang
index e9a971db1e976e08dd30de6e2778efbc0b514e71..f0884e4d6521d0c838d85308677014e8c5be9875 100644 (file)
@@ -88,5 +88,46 @@ module vpnintent {
 
     container mpls-labels {
         uses labels;
-   }
+    }
+
+    rpc add-vpn-endpoint{
+        description
+            "Add VPN endpoint.";
+        input {
+            leaf vpn-name {
+                type string;
+                description "VPN name";
+                mandatory true;
+            }
+            uses endpoint-fields;
+        }
+    }
+
+    rpc remove-vpn-endpoint{
+        description
+            "Remove VPN endpoint.";
+        input {
+            leaf vpn-name {
+                type string;
+                description "VPN name";
+                mandatory true;
+            }
+            leaf site-name{
+                type string;
+                description "VPN member site name.";
+            }
+        }
+    }
+
+    rpc remove-vpn{
+        description
+            "Remove VPN and its endpoints.";
+        input {
+            leaf vpn-name {
+                type string;
+                description "VPN name";
+                mandatory true;
+            }
+        }
+    }
   }