BUG 7802: split out shard creation from produce transactions
[controller.git] / opendaylight / md-sal / samples / clustering-test-app / model / src / main / yang / odl-mdsal-lowlevel-control.yang
index 302fbbd3626e6e4ac80f0510d70acb7b5c3582d1..a10b3ce628154943f0a98d9f8adc396e3ff29ebe 100644 (file)
@@ -340,31 +340,44 @@ module odl-mdsal-lowlevel-control {
         }
     }
 
-    rpc become-prefix-leader {
-        description "Upon receiving this, the member shall ask the appropriate API
-            to become Leader of the given shard (presumably the llt:list-ints one,
-            created by produce-transactions) and return immediatelly.";
+    rpc create-prefix-shard {
+        description "Upon receiving this, the member creates a prefix shard at the instance-identifier, with replicas
+                on the required members.";
         input {
-            leaf shard-name {
-                description "TBD.
 
-                FIXME: Ask Java implementation developer about the format needed.";
+            leaf prefix {
                 mandatory true;
+                type instance-identifier;
+            }
+            leaf-list replicas {
+                min-elements 1;
                 type string;
             }
         }
-        // No output.
     }
 
-    rpc become-module-leader {
-        description "Upon receiving this, the member shall ask appropriate API
-            to become Leader of given config shard and return immediatelly.";
+    rpc remove-prefix-shard {
+        description "Upon receiving this, the member removes the prefix based shard identifier by this prefix.
+                This must be called from the same node that created the shard.";
+
+        input {
+            leaf prefix {
+                mandatory true;
+                type instance-identifier;
+            }
+        }
+    }
+
+
+    rpc become-prefix-leader {
+        description "Upon receiving this, the member shall ask the appropriate API
+            to become Leader of the given shard (presumably the llt:list-ints one,
+            created by produce-transactions) and return immediatelly.";
         input {
             leaf shard-name {
                 description "TBD.
 
-                FIXME: Ask Java implementation developer about the format needed.
-                TODO: Perhaps the names are compatible and one 'become-leader' would suffice?";
+                FIXME: Ask Java implementation developer about the format needed.";
                 mandatory true;
                 type string;
             }