Add the ability to report known connected clients
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / yang / odl-controller-cds-types.yang
1 module odl-controller-cds-types {
2   yang-version 1;
3   namespace "urn:opendaylight:params:xml:ns:yang:controller:cds:types";
4   prefix "cdst";
5
6   organization "The OpenDaylight Project";
7
8   description "Common type definitions related to clustered data store.";
9
10   revision 2019-10-24 {
11     description "Initial revision.";
12   }
13
14   typedef member-name {
15     description "Cluster member name.";
16     type string;
17   }
18
19   typedef frontend-type {
20     description "Frontend type.";
21     type string {
22       pattern "";
23     }
24   }
25
26   typedef client-generation {
27     description "Client generation.";
28     type uint64;
29   }
30
31   grouping frontend-identifier {
32     description "Identifier of a particular frontend.";
33     leaf member {
34       type member-name;
35       mandatory true;
36     }
37
38     leaf type {
39       type frontend-type;
40       mandatory true;
41     }
42   }
43
44   grouping client-identifier {
45     description "Identifier of a particular client.";
46     uses frontend-identifier;
47     leaf generation {
48       type client-generation;
49       mandatory true;
50     }
51   }
52 }
53