Add option to enable/disable basic DCL and/or DTCL
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / car.yang
index d9cfb6b1d5872f79a695410cf52d100fd6094e70..1732a24093b6a988baaa2215f45392f07e80fe16 100644 (file)
@@ -59,6 +59,57 @@ module car {
        uses car-entry;
       }
     }
+    
+    rpc stress-test {
+        input {
+            leaf rate {
+              type uint16;
+            }
+
+            leaf count {
+              type uint16;
+              default 0;
+              description "Number of cars to create. Zero implies unlimited cars; use
+                           stop-stress-test rpc to stop the test.";
+            }
+        }
+    }
+    
+    rpc stop-stress-test {
 
+    }
+
+    rpc register-ownership {
+        input {
+            leaf car-id {
+                type string;
+              }
+        }
+    }
     
+    rpc unregister-ownership {
+        input {
+            leaf car-id {
+                type string;
+              }
+        }
+    }
+
+    rpc register-logging-dcl {
+        description "Registers a basic logging DCL on the cars container.  This is useful
+                    for analyzing effects of DCL on a long, flat list.";
+    }
+
+    rpc unregister-logging-dcls {
+        description "Unregisters the logging DCL(s) for the cars container.";
+    }
+
+    rpc register-logging-dtcl {
+        description "Registers a basic logging DTCL on the cars container.  This is useful
+                            for analyzing the effects of DTCL on a long, flat list.";
+    }
+
+    rpc unregister-logging-dtcls {
+        description "Unregisters the logging DTCL(s) for the cars container.";
+    }
 }
\ No newline at end of file