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;
18 import transportpce-pathDescription {
19 prefix transportpce-pathDescription;
20 revision-date 2017-10-17;
22 import gnpy-path-computation-simplified {
24 revision-date 2019-05-02;
30 "transportPCE committers - ODL";
32 "YANG definitions of B interface (transportPCE). Adapted from service definition (openroadm)
33 Copyright © 2017 Orange, Inc. and others. All rights reserved.
36 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
37 AT&T Intellectual Property. All other rights reserved.
39 Redistribution and use in source and binary forms, with or without modification,
40 are permitted provided that the following conditions are met:
42 * Redistributions of source code must retain the above copyright notice, this
43 list of conditions and the following disclaimer.
44 * Redistributions in binary form must reproduce the above copyright notice,
45 this list of conditions and the following disclaimer in the documentation and/or
46 other materials provided with the distribution.
47 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
48 contributors may be used to endorse or promote products derived from this software
49 without specific prior written permission.
51 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
52 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
53 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
54 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
55 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
56 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
57 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
58 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
59 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
60 POSSIBILITY OF SUCH DAMAGE";
77 rpc path-computation-request {
82 "Identifier for the service to be created in
83 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.";
86 leaf resource-reserve {
89 "indicates if resources (from local PCE topology) must be reserved until further notice (cancel-resource-reserve or topology update)";
92 uses transportpce-common-service-path-types:service-handler-header;
93 container service-a-end {
94 uses transportpce-common-service-path-types:service-endpoint-sp;
96 container service-z-end {
97 uses transportpce-common-service-path-types:service-endpoint-sp;
99 uses transportpce-routing-constraints:routing-constraints-sp;
102 uses org-openroadm-common-service-types:configuration-response-common;
103 uses transportpce-common-service-path-types:response-parameters-sp;
108 rpc cancel-resource-reserve {
114 uses transportpce-common-service-path-types:service-handler-header;
117 uses org-openroadm-common-service-types:configuration-response-common;
121 notification service-path-rpc-result {
123 "This Notification indicates result of service RPC";
124 leaf notification-type {
125 type transportpce-common-service-path-types:service-path-notification-types;
127 container path-description {
128 uses transportpce-pathDescription:path-description;
130 uses transportpce-common-service-path-types:rpc-response-status-ex;
131 uses org-openroadm-common-service-types:service-notification-result;
134 grouping stubpce-path-description {
138 "Identifier for the pathDescription to be created in
139 the ROADM network, e.g., CLFI, CLCI, etc.";
142 uses transportpce-pathDescription:path-description;
145 container path-description-list {
147 "List of pathDescription. Can only be created, deleted, modified, etc. using special RPCs.";
148 list pathDescriptions {
150 uses stubpce-path-description;
158 description "GNPy response";
161 description "A-to-Z or Z-to-A";
166 "true : feasible path / False : non-feasible.";
168 choice response-type {
170 description "response-type";
172 uses gnpypc:no-path-info;
175 uses path-performance;
176 description "Path computation service.";
182 grouping path-performance {
183 description "TE generic path properties grouping";
184 container path-properties {
186 description "The TE path properties";
189 description "TE path metric type";
192 base gnpypc:path-metric-type;
195 leaf accumulative-value {