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;
9 import ietf-network-topology {
10 prefix ietf-network-topology;
11 revision-date 2018-02-26;
17 "transportPCE committers - ODL";
19 "YANG definitions of RPCs supported by OLM.
20 Copyright (c) 2017 AT&T and others. All rights reserved.
21 authors: Dhruv Bhardwaj ( db929a@att.com )
22 Shweta Vachhani ( sv111y@att.com )";
26 "Updated following transportpce-common-types udpate";
30 "Initial revision of olm model";
35 "This RPC fetches from the device a list of pm measurements
36 on a given resource and granularity.";
38 uses org-transportpce-common-types:olm-get-pm-input;
41 uses org-transportpce-common-types:olm-get-pm-input;
47 "Set of parameters related to a PM Measurement";
48 leaf pmparameter-name {
51 leaf pmparameter-value {
58 rpc service-power-setup {
60 "This RPC sets up output power values on a list of ROADMs/Transponders
61 based on the path the wavelength takes";
63 uses org-transportpce-common-types:optical-renderer-input;
72 rpc service-power-turndown {
74 "This RPC turn down the output power values on a list of ROADMs/Transponders
75 based on the path the wavelength takes";
77 uses org-transportpce-common-types:optical-renderer-input;
86 rpc service-power-reset {
88 "This RPC re-calculates and re-sets power for all nodes part of a
89 service given in input";
94 "Name of the service. Unique identifier for serivice";
104 rpc calculate-spanloss-base {
106 "This RPC calculates spanloss for the very first time on all links
107 in the network model or any newly discovered link";
119 "Source type defines whether RPC runs for all links or given link Id";
122 when "../src-type = 'link'";
123 type ietf-network-topology:link-id;
126 "Link-Id for the link where spanloss-base needs to be calculated. Default option is
127 calculating spanloss for all Roadm to Roadm links";
136 type ietf-network-topology:link-id;
145 rpc calculate-spanloss-current {
147 "This RPC can be used by PM monitoring to calculate spanloss