Initial bundle setup for SRM
[genius.git] / srm / api / src / main / yang / srm-ops.yang
1 module srm-ops {
2     namespace "urn:opendaylight:genius:srm:ops";
3     prefix "srmops";
4
5     import srm-types {
6         prefix srmtype;
7     }
8
9     revision "2017-07-11" {
10         description "ODL Services Recovery Manager Operations Model";
11     }
12
13     /* Operations  */
14
15     container service-ops {
16         config false;
17         list services {
18             key service-name;
19             leaf service-name {
20                 type identityref {
21                     base srmtype:entity-name-base;
22                 }
23             }
24             list operations {
25                 key entity-name;
26                 leaf entity-name {
27                     type identityref {
28                         base srmtype:entity-name-base;
29                     }
30                 }
31                 leaf entity-type {
32                     type identityref {
33                         base srmtype:entity-type-base;
34                     }
35                 }
36                 leaf entity-id {
37                     description "Optional when entity-type is service. Actual
38                                  id depends on entity-type and entity-name";
39                     type string;
40                 }
41                 leaf trigger-operation {
42                     type identityref {
43                         base srmtypes:service-op-base;
44                     }
45                 }
46             }
47         }
48     }
49
50 }