98b9118ed9929023ec84014c34a362da9321d080
[transportpce.git] / api / src / main / yang / olm.yang
1 module olm {
2   yang-version 1;
3   namespace "urn:opendaylight:params:xml:ns:yang:olm";
4   prefix "olm";
5
6   revision "2017-4-18" {
7     description "Initial revision of olm model";
8   }
9   rpc get-pm {
10     input{
11       leaf node-id{
12         type string;
13       }
14       leaf resource-type{
15         type string;
16       }
17       leaf resource-name{
18         type string;
19       }
20       leaf granularity{
21         type string;
22       }
23     }
24     output{
25       leaf node-id{
26         type string;
27       }
28       leaf resource-type{
29         type string;
30       }
31       leaf resource-id{
32         type string;
33       }
34       leaf granularity {
35         type string;
36       }
37       list measurements {
38       leaf pmparameter-name{
39         type string;
40       }
41       leaf pmparameter-value {
42         type string;
43         }
44       }
45     }
46   }
47   rpc service-power-setup{
48     input{
49       list nodes{
50         key "node-id";
51         leaf node-id{
52           type string;
53         }
54         leaf src-tp{
55           type string;
56           description "Source termination point ";
57           mandatory true;
58         }
59         leaf dest-tp{
60           type string;
61           description "Destination termination point ";
62            mandatory true;
63         }
64       }
65     }
66     output{
67       leaf result{
68         type string;
69       }
70     }
71   }
72 }