X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-cluster-admin-api%2Fsrc%2Fmain%2Fyang%2Fcluster-admin.yang;h=bb0eed38b28e59f45a1f5fe3985d4fddca4b82fc;hb=refs%2Fchanges%2F38%2F85038%2F5;hp=3acd0794e4280bf8c37ad0e7ed0367dcf5c08d78;hpb=57602b656df8cd1aa99704b70bcaa80921c45b47;p=controller.git diff --git a/opendaylight/md-sal/sal-cluster-admin-api/src/main/yang/cluster-admin.yang b/opendaylight/md-sal/sal-cluster-admin-api/src/main/yang/cluster-admin.yang index 3acd0794e4..bb0eed38b2 100644 --- a/opendaylight/md-sal/sal-cluster-admin-api/src/main/yang/cluster-admin.yang +++ b/opendaylight/md-sal/sal-cluster-admin-api/src/main/yang/cluster-admin.yang @@ -250,6 +250,32 @@ module cluster-admin { description "Returns the current role for the requested module shard."; } + rpc locate-shard { + description "Return the transport-level information about where a shard has a home."; + input { + uses datastore-shard-id; + } + + output { + choice member-node { + description "Location of the hypothetical cluster member node. Relationship to the input parameters + and the transport protocol."; + + leaf local { + description "Local node is the best node to talk to when it comes from efficiency perspective + of underlying implementation. The requester of this RPC is advised to contact + any services to the specified shard via the channel on which this RPC was invoked."; + type empty; + } + + leaf leader-actor-ref { + description "Actor reference to the actor which is currently acting as the leader."; + type string; + } + } + } + } + rpc get-prefix-shard-role { input { leaf shard-prefix {