Bug 7801 - Implement agent RPCs for transaction writer testing
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / odl-mdsal-lowlevel-control.yang
index e9a6c7a6abb1b9a1c3cf5d5d54362d6b29fcbb54..2a5299d761e328624019d9ac021fc1c5accb9df8 100644 (file)
@@ -102,8 +102,8 @@ module odl-mdsal-lowlevel-control {
             If the application is instantiated, it immediatelly un-registers itself.
             When the application instance is closed, it increments flap-count
             and if active flag is set, re-registers the application implementation as a singleton.
-            If either un-registration or re-registration fails, flap-count is set
-            to negative of its previous value (minus one in case of un-registration)
+            If either un-registration or re-registration fails, 'active' flag is unset,
+            flap-count is set to negative of its previous value (minus one in case of un-registration)
             to signal a failure has happened.";
         // No input.
         // No output.
@@ -127,9 +127,7 @@ module odl-mdsal-lowlevel-control {
     rpc publish-notifications {
         description "Upon receiving this, the member shall start publishing llt:id-sequence
             notifications with the given id and sequence numbers, increasing, from 1.
-            .get with a timeout on currently earliest non-complete Future (from .publish)
-            shall be used as the primary wait method to throttle the publish rate.
-            The RPC shall not return until all publishes are confirmed successful,
+            The RPC shall not return until all publishes are successful,
             or an exception is raised (the exception should propagate to restconf response).";
         input {
             uses llc:id-grouping;
@@ -234,7 +232,23 @@ module odl-mdsal-lowlevel-control {
                 type boolean;
             }
         }
-        // No output.
+        output {
+            leaf all-tx {
+                description "Number of all transactions executed.";
+                type int64;
+                mandatory true;
+            }
+            leaf insert-tx {
+                description "Number of transactions that inserted data.";
+                type int64;
+                mandatory true;
+            }
+            leaf delete-tx {
+                description "Number of transactions that deleted data.";
+                type int64;
+                mandatory true;
+            }
+        }
     }
 
     rpc produce-transactions {