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;
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.
38 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
39 AT&T Intellectual Property. All other rights reserved.
41 Redistribution and use in source and binary forms, with or without modification,
42 are permitted provided that the following conditions are met:
44 * Redistributions of source code must retain the above copyright notice, this
45 list of conditions and the following disclaimer.
46 * Redistributions in binary form must reproduce the above copyright notice,
47 this list of conditions and the following disclaimer in the documentation and/or
48 other materials provided with the distribution.
49 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
50 contributors may be used to endorse or promote products derived from this software
51 without specific prior written permission.
53 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
54 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
55 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
56 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
57 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
58 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
59 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
60 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
61 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
62 POSSIBILITY OF SUCH DAMAGE";
75 typedef service-path-notification-types {
77 enum "path-computation-request" {
80 enum "cancel-resource-reserve" {
83 enum "service-implementation-request" {
86 enum "service-delete" {
92 typedef rpc-status-ex {
94 "extended status of RPC ";
108 grouping rpc-response-status-ex {
113 "Successful, Failed or Pending";
117 leaf status-message {
120 "Gives a more detailed reason for failure";
125 grouping response-parameters-sp {
126 container response-parameters {
127 uses transportpce-routing-constraints:routing-constraints-sp;
128 container path-description {
129 uses transportpce-pathDescription:path-description;
134 grouping service-endpoint-sp {
135 leaf service-format {
136 type org-openroadm-common-service-types:service-format;
139 "Format of the requested service: Ethernet, OTU, etc.";
142 when "../service-format!='OMS'"{
143 description "service rate not applicable when service
144 format is roadmline";
149 "Rate of the requested service in GBps";
160 container tx-direction {
161 uses org-openroadm-common-service-types:service-port;
163 // uses service-tail;
165 container rx-direction {
166 uses org-openroadm-common-service-types:service-port;
168 // uses service-tail;
172 grouping service-handler-header {
173 container service-handler-header {
181 grouping service-path {
182 leaf service-path-name {
185 "Identifier for the service-path to be calculated by
189 uses service-handler-header;
191 container service-a-end {
192 uses service-endpoint-sp;
194 container service-z-end {
195 uses service-endpoint-sp;
197 uses transportpce-routing-constraints:routing-constraints-sp;
202 "Latency on service";
204 leaf-list fiber-span-srlgs {
207 "Shared risk link group identifiers";
209 list equipment-srgs {
211 uses org-openroadm-resource-types:srg-number;
213 leaf-list supporting-service-name {
215 "The service name that this runs over top. If connection-type is service, then this is the related
216 connection-type = infrastructure service, for example.";
219 container path-description {
220 uses transportpce-pathDescription:path-description;