1 module transportpce-pce {
2 namespace "http://org/opendaylight/transportpce/pce";
3 prefix "org-opendaylight-transportpce-pce";
5 import ietf-yang-types {
8 import transportpce-routing-constraints {
9 prefix transportpce-routing-constraints;
10 revision-date 2017-10-17;
12 import org-openroadm-common-service-types {
13 prefix org-openroadm-common-service-types;
15 import transportpce-common-service-path-types {
16 prefix transportpce-common-service-path-types;
17 revision-date 2017-10-16;
19 import transportpce-pathDescription {
20 prefix transportpce-pathDescription;
21 revision-date 2017-10-17;
23 import gnpy-path-computation-simplified {
25 revision-date 2019-05-02;
31 "transportPCE committers - ODL";
33 "YANG definitions of B interface (transportPCE). Adapted from service definition (openroadm)
34 Copyright © 2017 Orange, Inc. and others. All rights reserved.
37 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
38 AT&T Intellectual Property. All other rights reserved.
40 Redistribution and use in source and binary forms, with or without modification,
41 are permitted provided that the following conditions are met:
43 * Redistributions of source code must retain the above copyright notice, this
44 list of conditions and the following disclaimer.
45 * Redistributions in binary form must reproduce the above copyright notice,
46 this list of conditions and the following disclaimer in the documentation and/or
47 other materials provided with the distribution.
48 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
49 contributors may be used to endorse or promote products derived from this software
50 without specific prior written permission.
52 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
53 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
54 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
55 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
56 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
57 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
58 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
59 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
60 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
61 POSSIBILITY OF SUCH DAMAGE";
78 rpc path-computation-request {
83 "Identifier for the service to be created in
84 the ROADM network, e.g., CLFI, CLCI, etc. This is reported against the service, but may not get reflected in the service in the network.";
87 leaf resource-reserve {
90 "indicates if resources (from local PCE topology) must be reserved until further notice (cancel-resource-reserve or topology update)";
93 uses transportpce-common-service-path-types:service-handler-header;
94 container service-a-end {
95 uses transportpce-common-service-path-types:service-endpoint-sp;
97 container service-z-end {
98 uses transportpce-common-service-path-types:service-endpoint-sp;
100 uses transportpce-routing-constraints:routing-constraints-sp;
103 uses org-openroadm-common-service-types:configuration-response-common;
104 uses transportpce-common-service-path-types:response-parameters-sp;
109 rpc cancel-resource-reserve {
115 uses transportpce-common-service-path-types:service-handler-header;
118 uses org-openroadm-common-service-types:configuration-response-common;
122 notification service-path-rpc-result {
124 "This Notification indicates result of service RPC";
125 leaf notification-type {
126 type transportpce-common-service-path-types:service-path-notification-types;
128 container path-description {
129 uses transportpce-pathDescription:path-description;
131 uses transportpce-common-service-path-types:rpc-response-status-ex;
132 uses org-openroadm-common-service-types:service-notification-result;
135 grouping stubpce-path-description {
139 "Identifier for the pathDescription to be created in
140 the ROADM network, e.g., CLFI, CLCI, etc.";
143 uses transportpce-pathDescription:path-description;
146 container path-description-list {
148 "List of pathDescription. Can only be created, deleted, modified, etc. using special RPCs.";
149 list pathDescriptions {
151 uses stubpce-path-description;
159 description "GNPy response";
162 description "A-to-Z or Z-to-A";
167 "true : feasible path / False : non-feasible.";
169 choice response-type {
171 description "response-type";
173 uses gnpypc:no-path-info;
176 uses path-performance;
177 description "Path computation service.";
183 grouping path-performance {
184 description "TE generic path properties grouping";
185 container path-properties {
187 description "The TE path properties";
190 description "TE path metric type";
193 base gnpypc:path-metric-type;
196 leaf accumulative-value {