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 "Initial revision of olm model";
31 "This RPC fetches from the device a list of pm measurements
32 on a given resource and granularity.";
34 uses org-transportpce-common-types:olm-get-pm-input;
37 uses org-transportpce-common-types:olm-get-pm-input;
43 "Set of parameters related to a PM Measurement";
44 leaf pmparameter-name {
47 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;
68 rpc service-power-turndown {
70 "This RPC turn down the output power values on a list of ROADMs/Transponders
71 based on the path the wavelength takes";
73 uses org-transportpce-common-types:olm-renderer-input;
82 rpc service-power-reset {
84 "This RPC re-calculates and re-sets power for all nodes part of a
85 service given in input";
90 "Name of the service. Unique identifier for serivice";
100 rpc calculate-spanloss-base {
102 "This RPC calculates spanloss for the very first time on all links
103 in the network model or any newly discovered link";
115 "Source type defines whether RPC runs for all links or given link Id";
118 when "../src-type = 'link'";
119 type ietf-network-topology:link-id;
122 "Link-Id for the link where spanloss-base needs to be calculated. Default option is
123 calculating spanloss for all Roadm to Roadm links";
132 type ietf-network-topology:link-id;
141 rpc calculate-spanloss-current {
143 "This RPC can be used by PM monitoring to calculate spanloss