1 module transportpce-olm {
3 namespace "http://org/opendaylight/transportpce/olm";
4 prefix "org-opendaylight-transportpce-olm";
6 import transportpce-common-types {
7 prefix org-transportpce-common-types;
8 revision-date 2017-09-07;
11 import ietf-network-topology {
12 prefix ietf-network-topology;
13 revision-date 2018-02-26;
19 "transportPCE committers - ODL";
21 "YANG definitions of RPCs supported by OLM.
22 Copyright (c) 2017 AT&T and others. All rights reserved.
23 authors: Dhruv Bhardwaj ( db929a@att.com )
24 Shweta Vachhani ( sv111y@att.com )";
26 revision "2017-04-18" {
27 description "Initial revision of olm model";
32 "This RPC fetches from the device a list of pm measurements
33 on a given resource and granularity.";
35 uses org-transportpce-common-types:olm-get-pm-input;
38 uses org-transportpce-common-types:olm-get-pm-input;
44 "Set of parameters related to a PM Measurement";
45 leaf pmparameter-name{
48 leaf pmparameter-value {
54 rpc service-power-setup{
56 "This RPC sets up output power values on a list of ROADMs/Transponders
57 based on the path the wavelength takes";
59 uses org-transportpce-common-types:olm-renderer-input;
67 rpc service-power-turndown{
69 "This RPC turn down the output power values on a list of ROADMs/Transponders
70 based on the path the wavelength takes";
72 uses org-transportpce-common-types:olm-renderer-input;
80 rpc service-power-reset{
82 "This RPC re-calculates and re-sets power for all nodes part of a
83 service given in input";
88 "Name of the service. Unique identifier for serivice";
97 rpc calculate-spanloss-base{
99 "This RPC calculates spanloss for the very first time on all links
100 in the network model or any newly discovered link";
104 "Soruce type defines whether RPC runs for all links or given link Id";
115 when "../src-type = 'link'";
116 type ietf-network-topology:link-id;
119 "Link-Id for the link where spanloss-base needs to be calculated. Default option is
120 calculating spanloss for all Roadm to Roadm links";
129 type ietf-network-topology:link-id;
137 rpc calculate-spanloss-current{
139 "This RPC can be used by PM monitoring to calculate spanloss