BUG 2187 : Add more parameters to RemoveShardReplica input 08/29908/4
authorMoiz Raja <moraja@cisco.com>
Thu, 19 Nov 2015 01:51:29 +0000 (17:51 -0800)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 3 Dec 2015 12:21:44 +0000 (12:21 +0000)
Change-Id: I6e47fa31a04cb901d7495784e4c3590dbdddb520
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/yang/cluster-admin.yang

index 51aeb8cfb241419764606cba54a648873ba2cd02..967e5554dfaa0e96a1bde2c9277c0d8883c9fc40 100644 (file)
@@ -10,6 +10,17 @@ module cluster-admin {
         description "Initial revision.";
     }
 
+    typedef data-store-type {
+        type enumeration {
+          enum config {
+            value 1;
+          }
+          enum operational {
+            value 2;
+          }
+        }
+    }
+
     rpc add-shard-replica {
         input {
             leaf shard-name {
@@ -31,6 +42,16 @@ module cluster-admin {
               type string;
               description "The name of the shard for which to remove the replica.";
             }
+
+            leaf member-name {
+              type string;
+              description "The cluster member from which the shard replica should be removed";
+            }
+
+            leaf data-store-type {
+              type data-store-type;
+              description "The type of the data store to which the replica belongs";
+            }
         }
 
         description "Removes an existing replica of a shard from this node via the RemoveServer mechanism as