3 namespace "urn:opendaylight:params:xml:ns:yang:olm";
6 import org-transportpce-common-types {
7 prefix org-transportpce-common-types;
8 revision-date 2017-09-07;
14 "transportPCE committers - ODL";
16 "YANG definitions of RPCs supported by OLM.
17 Copyright (c) 2017 AT&T and others. All rights reserved.
18 authors: Dhruv Bhardwaj ( db929a@att.com )
19 Shweta Vachhani ( sv111y@att.com )";
21 revision "2017-04-18" {
22 description "Initial revision of olm model";
26 "This RPC fetches from the device a list of pm measurements
27 on a given resource and granularity.";
29 uses org-transportpce-common-types:olm-get-pm-input;
32 uses org-transportpce-common-types:olm-get-pm-input;
38 "Set of parameters related to a PM Measurement";
39 leaf pmparameter-name{
42 leaf pmparameter-value {
48 rpc service-power-setup{
50 "This RPC sets up output power values on a list of ROADMs/Transponders
51 based on the path the wavelength takes";
53 uses org-transportpce-common-types:olm-renderer-input;
61 rpc service-power-turndown{
63 "This RPC turn down the output power values on a list of ROADMs/Transponders
64 based on the path the wavelength takes";
66 uses org-transportpce-common-types:olm-renderer-input;
74 /*rpc service-power-reset{
76 "This RPC re-calculates and re-sets power for all nodes part of a
77 service given in input";
82 "Name of the service. Unique identifier for serivice";
91 rpc calculate-spanloss-base{
93 "This RPC calculates spanloss for the very first time on all links
94 in the network model or any newly discovered link";
98 "Soruce type defines whether RPC runs for all links or given link Id";
109 when "../src-type = 'link'";
110 type ietf-network-topology:link-id;
113 "Link-Id for the link where spanloss-base needs to be calculated. Default option is
114 calculating spanloss for all Roadm to Roadm links";
123 rpc calculate-spanloss-current{
125 "This RPC can be used by PM monitoring to calculate spanloss