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;
11 import ietf-network-topology {
12 prefix ietf-network-topology;
13 revision-date 2015-06-08;
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";
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 {
53 rpc service-power-setup{
55 "This RPC sets up output power values on a list of ROADMs/Transponders
56 based on the path the wavelength takes";
58 uses org-transportpce-common-types:olm-renderer-input;
66 rpc service-power-turndown{
68 "This RPC turn down the output power values on a list of ROADMs/Transponders
69 based on the path the wavelength takes";
71 uses org-transportpce-common-types:olm-renderer-input;
79 rpc service-power-reset{
81 "This RPC re-calculates and re-sets power for all nodes part of a
82 service given in input";
87 "Name of the service. Unique identifier for serivice";
96 rpc calculate-spanloss-base{
98 "This RPC calculates spanloss for the very first time on all links
99 in the network model or any newly discovered link";
103 "Soruce type defines whether RPC runs for all links or given link Id";
114 when "../src-type = 'link'";
115 type ietf-network-topology:link-id;
118 "Link-Id for the link where spanloss-base needs to be calculated. Default option is
119 calculating spanloss for all Roadm to Roadm links";
128 type ietf-network-topology:link-id;
136 rpc calculate-spanloss-current{
138 "This RPC can be used by PM monitoring to calculate spanloss