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-04-26;
15 import transportpce-pathDescription {
16 prefix transportpce-pathDescription;
17 revision-date 2017-04-26;
19 import org-openroadm-common-types {
20 prefix org-openroadm-common-types;
22 import org-openroadm-resource-types {
23 prefix org-openroadm-resource-types;
25 import org-openroadm-common-service-types {
26 prefix org-openroadm-common-service-types;
32 "transportPCE committers - ODL";
34 "YANG definitions of B & C interfaces (transportPCE). Adapted from service definition (openroadm).
35 Copyright © 2017 Orange, Inc. and others. All rights reserved.
37 This model is derived from the OpenROADM service definition that includes the following notice:
40 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
41 AT&T Intellectual Property. All other rights reserved.
43 Redistribution and use in source and binary forms, with or without modification,
44 are permitted provided that the following conditions are met:
46 * Redistributions of source code must retain the above copyright notice, this
47 list of conditions and the following disclaimer.
48 * Redistributions in binary form must reproduce the above copyright notice,
49 this list of conditions and the following disclaimer in the documentation and/or
50 other materials provided with the distribution.
51 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
52 contributors may be used to endorse or promote products derived from this software
53 without specific prior written permission.
55 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
56 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
57 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
58 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
59 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
60 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
61 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
62 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
63 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
64 POSSIBILITY OF SUCH DAMAGE";
70 typedef service-path-notification-types {
72 enum "path-computation-request" {
75 enum "cancel-resource-reserve" {
78 enum "service-implementation-request" {
81 enum "service-delete" {
87 typedef rpc-status-ex {
89 "extended status of RPC ";
103 grouping rpc-response-status-ex {
108 "Successful, Failed or Pending";
111 leaf status-message {
114 "Gives a more detailed reason for failure";
118 grouping response-parameters-sp {
119 container response-parameters {
120 uses transportpce-routing-constraints:routing-constraints-sp;
121 container path-description {
122 uses transportpce-pathDescription:path-description;
127 grouping service-endpoint-sp {
128 leaf service-format {
129 type org-openroadm-common-service-types:service-format;
132 "Format of the requested service: Ethernet, OTU, etc.";
135 when "../service-format!='OMS'"{
136 description "service rate not applicable when service
137 format is roadmline";
142 "Rate of the requested service in GBps";
153 container tx-direction {
154 uses org-openroadm-common-service-types:service-port;
156 // uses service-tail;
158 container rx-direction {
159 uses org-openroadm-common-service-types:service-port;
161 // uses service-tail;
165 grouping service-handler-header {
166 container service-handler-header {
174 grouping service-path {
175 leaf service-path-name {
178 "Identifier for the service-path to be calculated by
182 uses service-handler-header;
184 container service-a-end {
185 uses service-endpoint-sp;
187 container service-z-end {
188 uses service-endpoint-sp;
190 uses transportpce-routing-constraints:routing-constraints-sp;
195 "Latency on service";
197 leaf-list fiber-span-srlgs {
200 "Shared risk link group identifiers";
202 list equipment-srgs {
204 uses org-openroadm-resource-types:srg-number;
206 leaf-list supporting-service-name {
208 "The service name that this runs over top. If connection-type is service, then this is the related
209 connection-type = infrastructure service, for example.";
212 container path-description {
213 uses transportpce-pathDescription:path-description;