BUG-7965 Switch distributed-data backend to a separate shard
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / yang / prefix-shard-configuration.yang
1 module prefix-shard-configuration {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:prefix-shard-configuration";
4     prefix "prefix-config";
5
6     description
7         "This module contains the base YANG definitions for
8         shards based on prefix configuration";
9
10     revision "2017-01-10" {
11         description "Initial revision.";
12     }
13
14     container prefix-shards {
15
16         list shard {
17             key prefix;
18             leaf prefix {
19                 type instance-identifier;
20                 description "Prefix that this shard is rooted at.";
21             }
22
23             container replicas {
24                 leaf-list replica {
25                     type string;
26                 }
27
28                 description "List of cluster member nodes that this shard is replicated on";
29             }
30
31             description "List of prefix-based shards configured.";
32         }
33     }
34 }