1 module transportpce-common-service-path-types {
2 namespace "http://org/transportpce/B-C-interface/service/types";
3 prefix transportpce-common-service-path-types;
5 import ietf-yang-types {
8 import ietf-inet-types {
11 import transportpce-routing-constraints {
12 prefix transportpce-routing-constraints;
13 revision-date 2017-10-17;
15 import transportpce-pathDescription {
16 prefix transportpce-pathDescription;
17 revision-date 2017-10-17;
19 import org-openroadm-common-types {
20 prefix org-openroadm-common-types;
21 revision-date 2019-05-31;
23 import org-openroadm-resource-types {
24 prefix org-openroadm-resource-types;
25 revision-date 2018-11-30;
27 import org-openroadm-common-service-types {
28 prefix org-openroadm-common-service-types;
29 revision-date 2019-05-31;
31 import org-openroadm-service-format {
32 prefix org-openroadm-service-format;
33 revision-date 2019-05-31;
39 "transportPCE committers - ODL";
41 "YANG definitions of B & C interfaces (transportPCE). Adapted from service definition (openroadm)
42 Copyright © 2017 Orange, Inc. and others. All rights reserved.
45 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
46 AT&T Intellectual Property. All other rights reserved.
48 Redistribution and use in source and binary forms, with or without modification,
49 are permitted provided that the following conditions are met:
51 * Redistributions of source code must retain the above copyright notice, this
52 list of conditions and the following disclaimer.
53 * Redistributions in binary form must reproduce the above copyright notice,
54 this list of conditions and the following disclaimer in the documentation and/or
55 other materials provided with the distribution.
56 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
57 contributors may be used to endorse or promote products derived from this software
58 without specific prior written permission.
60 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
61 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
62 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
63 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
64 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
65 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
66 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
67 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
68 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
69 POSSIBILITY OF SUCH DAMAGE";
86 typedef service-path-notification-types {
88 enum "path-computation-request" {
91 enum "cancel-resource-reserve" {
94 enum "service-implementation-request" {
97 enum "service-delete" {
103 typedef rpc-status-ex {
105 "extended status of RPC ";
119 grouping rpc-response-status-ex {
124 "Successful, Failed or Pending";
128 leaf status-message {
131 "Gives a more detailed reason for failure";
136 grouping response-parameters-sp {
137 container response-parameters {
138 uses transportpce-routing-constraints:routing-constraints-sp;
139 container path-description {
140 uses transportpce-pathDescription:path-description;
145 grouping service-endpoint-sp {
146 leaf service-format {
147 type org-openroadm-service-format:service-format;
150 "Format of the requested service: Ethernet, OTU, etc.";
153 when "../service-format!='OMS'"{
154 description "service rate not applicable when service
155 format is roadmline";
160 "Rate of the requested service in GBps";
171 container tx-direction {
172 uses org-openroadm-common-service-types:service-port;
174 // uses service-tail;
176 container rx-direction {
177 uses org-openroadm-common-service-types:service-port;
179 // uses service-tail;
183 grouping service-handler-header {
184 container service-handler-header {
192 grouping service-path {
193 leaf service-path-name {
196 "Identifier for the service-path to be calculated by
200 uses service-handler-header;
202 container service-a-end {
203 uses service-endpoint-sp;
205 container service-z-end {
206 uses service-endpoint-sp;
208 uses transportpce-routing-constraints:routing-constraints-sp;
213 "Latency on service";
215 leaf-list fiber-span-srlgs {
218 "Shared risk link group identifiers";
220 list equipment-srgs {
222 uses org-openroadm-resource-types:srg-number;
224 leaf-list supporting-service-name {
226 "The service name that this runs over top. If connection-type is service, then this is the related
227 connection-type = infrastructure service, for example.";
230 container path-description {
231 uses transportpce-pathDescription:path-description;