X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fyang%2Fcluster-admin.yang;h=2d81db7117421ded2c4b5d662a74570c33063773;hb=28313ad901a88b4a5e5e9f54da0368c7171ca080;hp=b88cbbba234ffbac4056c7eb058e06173d457c71;hpb=066c58eb317f11d8cbe84d31ac4d5a5b034f1f2c;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/yang/cluster-admin.yang b/opendaylight/md-sal/sal-distributed-datastore/src/main/yang/cluster-admin.yang index b88cbbba23..2d81db7117 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/yang/cluster-admin.yang +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/yang/cluster-admin.yang @@ -39,14 +39,25 @@ module cluster-admin { } } + grouping shard-result-output { + list shard-result { + key "shard-name data-store-type"; + uses shard-operation-result; + + description "The list of results, one per shard"; + } + } + rpc add-shard-replica { input { leaf shard-name { + mandatory true; type string; description "The name of the shard for which to create a replica."; } leaf data-store-type { + mandatory true; type data-store-type; description "The type of the data store to which the replica belongs"; } @@ -62,16 +73,19 @@ module cluster-admin { rpc remove-shard-replica { input { leaf shard-name { + mandatory true; type string; description "The name of the shard for which to remove the replica."; } leaf member-name { + mandatory true; type string; description "The cluster member from which the shard replica should be removed"; } leaf data-store-type { + mandatory true; type data-store-type; description "The type of the data store to which the replica belongs"; } @@ -83,12 +97,7 @@ module cluster-admin { rpc add-replicas-for-all-shards { output { - list shard-result { - key "shard-name data-store-type"; - uses shard-operation-result; - - description "The list of results, one per shard"; - } + uses shard-result-output; } description "Adds replicas on this node for all currently defined shards. This is equivalent to issuing @@ -96,6 +105,18 @@ module cluster-admin { } rpc remove-all-shard-replicas { + input { + leaf member-name { + mandatory true; + type string; + description "The cluster member from which the shard replicas should be removed"; + } + } + + output { + uses shard-result-output; + } + description "Removes replicas for all shards on this node. This is equivalent to issuing a remove-shard-replica for all shards and essentially removes this node from a cluster."; }