Refactor AbstractClientHandle a bit
[controller.git] / opendaylight / md-sal / sal-distributed-eos / src / main / yang / entity-owners.yang
1 module entity-owners {
2     yang-version 1;
3     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:clustering:entity-owners";
4     prefix "entity-owners";
5
6     description
7         "This module contains the base YANG definitions for
8         an implementation of the EntityOwnershipService which stores
9         entity ownership information in the data store";
10
11     revision "2015-08-04" {
12         description "Initial revision.";
13     }
14
15     container entity-owners {
16
17         // A list of all entities grouped by type
18         list entity-type {
19             key type;
20             leaf type {
21                 type string;
22             }
23
24             list entity {
25                 key id;
26
27                 leaf id {
28                     type instance-identifier;
29                 }
30
31                 leaf owner {
32                     type string;
33                 }
34
35                 // A list of all the candidates that would like to own the entity
36                 list candidate {
37                     key name;
38                     ordered-by user;
39
40                     leaf name {
41                         type string;
42                     }
43                 }
44             }
45         }
46     }
47 }