1 module transportpce-portmapping {
3 namespace "http://org/opendaylight/transportpce/portmapping";
4 prefix org-opendaylight-transportpce-portmapping;
6 import ietf-inet-types {
7 prefix ietf-inet-types;
8 revision-date 2013-07-15;
10 import org-openroadm-common-optical-channel-types {
11 prefix org-openroadm-common-optical-channel-types;
12 revision-date 2020-05-29;
14 import org-openroadm-device-types {
15 prefix org-openroadm-device-types;
16 revision-date 2019-11-29;
18 import org-openroadm-otn-common-types {
19 prefix org-openroadm-otn-common-types;
20 revision-date 2020-03-27;
22 import org-openroadm-switching-pool-types {
23 prefix org-openroadm-switching-pool-types;
24 revision-date 2019-11-29;
26 import org-openroadm-port-types {
27 prefix org-openroadm-port-types;
28 revision-date 2020-12-11;
35 "transportPCE committers - ODL";
37 "YANG definitions for defining port mapping in TransportPCE.
38 Copyright (c) 2017 AT&T and others. All rights reserved.
39 authors: Dhruv Bhardwaj ( db929a@att.com ) Shweta Vachhani ( sv111y@att.com )
40 Balagangadhar Bathula ( bb4341@att.com )";
44 "Align org-openroadm-port-types model version to the latest one,
49 "Modify the container names for ODUCn and OTUCn supporting interfaces";
53 "Add supporting-otu interface in mapping";
57 "Adding mux-profile information to support 400G Muxponder";
61 "OpenROADM version fix 7.1.0 -> 7.1";
65 "Refacto model to use grouping";
69 "Add operational and administrative state of device port
74 "Upgrading imported models to 7.1.0";
78 "Add support to differentiate flexible and fixed
79 grid capabilities with mc-capabilities";
83 "Add SAPI/DAPI lcp hash value";
87 "Add necessary parameters to consolidate OTN
88 and address ONAP MDONS use case";
92 "Add OTN data from device and necessary
93 to build node inside otn topology";
101 "Version 2. To manage device 2.2.1";
103 revision 2017-02-28 {
105 "Initial revision of port mapping model";
108 typedef openroadm-node-version {
127 "YANG enumerations for OpenROADM models;
128 enums should be same as OpenROADM models
129 defined in org-openroadm-common-types";
134 type org-openroadm-device-types:node-types;
136 "Identifier for node-type e.g Roadm, xponder";
138 leaf openroadm-version {
139 type openroadm-node-version;
144 "Common Language Location Identifier.";
149 "Vendor of the equipment";
154 "Physical resource model information.";
156 leaf node-ip-address {
157 type ietf-inet-types:ip-address;
159 "Current IP Address of device";
165 key "logical-connection-point";
167 "Mapping for Physical circuit pack/port/parent interfaces corresponding
168 to each logical connection point present in the node.";
169 leaf logical-connection-point {
172 leaf supporting-circuit-pack-name {
175 "Circuit pack where the logical connection point is located";
177 leaf supporting-port {
180 "Port where the logical connection point is located";
182 leaf supporting-oms {
185 "OMS interface provisioned on the port";
187 leaf supporting-ots {
190 "OTS interface provisioned on the port";
192 leaf port-direction {
195 "Useful for line port of XPDR, for which there is no indication
196 in its logical-termination-point naming";
201 "Useful to identify from portmapping client from network ports
204 leaf port-admin-state {
207 "admin-state of port";
209 leaf port-oper-state {
212 "operational-state of port";
214 leaf supporting-ethernet {
217 "Ethernet interface provisioned on the port";
219 leaf supporting-otu4 {
222 "OTU4 interface provisioned on the port";
224 leaf supporting-otucn {
227 "OTUCn interface provisioned on the port for B100G support. This includes
228 OTUC2, OTUC3, OTUC4";
230 leaf supporting-odu4 {
233 "ODU4 interface provisioned on the port";
235 leaf supporting-oducn {
238 "ODUCn interface provisioned on the port for B100G support. This includes
239 ODUC2, ODUC3, ODUC4";
244 "Rate supported by the port";
246 leaf-list supported-interface-capability {
248 base org-openroadm-port-types:supported-if-capability;
251 uses mpdr-restrictions-grp;
253 type org-openroadm-device-types:xpdr-node-types;
255 leaf connection-map-lcp {
258 "For XPDR, associate two logical-connection-points from device/connnection-map
264 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
265 from device/partner port data";
270 "Hash value generated from node-id and lcp. This value will be used to map-
271 back SAPI and DAPI resource";
276 grouping mpdr-restrictions-grp {
277 container mpdr-restrictions {
278 when "../port-qual = 'switch-client' and ../../node-info/openroadm-version = '7.1'";
280 "This container provides the information about multiplexing of LO ODUs to HO ODUs
281 Caveat: If port advertizes multiple rates, this container does not work and results could
282 be wrong, meaning if the supported-interface-capabilities include, if-100GE-ODU4, if-OTU4-ODU4,
283 if-200GE-oduflexcbr, then min/max-trib-slot could be different";
285 type org-openroadm-otn-common-types:opucn-trib-slot-def;
287 "Minimum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
290 type org-openroadm-otn-common-types:opucn-trib-slot-def;
292 "Maximum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
297 grouping mc-capabilities {
298 list mc-capabilities {
301 "Capabilities of the media channel associated with a degree SRG, or
302 XPDR (7.1 and above). ";
306 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
307 Where i, and j are the degree and SRG numbers respectively.
308 For XPDR type it will have one element in the leaf-list,
309 with name XPDR-mcprofile";
311 leaf slot-width-granularity {
312 type org-openroadm-common-optical-channel-types:frequency-GHz;
315 "Width of a slot measured in GHz.";
317 leaf center-freq-granularity {
318 type org-openroadm-common-optical-channel-types:frequency-GHz;
321 "Width of a slot measured in GHz.";
326 grouping cp-to-degree {
328 key "circuit-pack-name";
330 "This mapping helps locate degree number of the circuitpack that
331 does lldp protocol management";
332 leaf circuit-pack-name {
338 leaf interface-name {
344 grouping switching-pool-lcp {
345 list switching-pool-lcp {
346 key "switching-pool-number";
348 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
349 the logical-connection-points";
350 leaf switching-pool-number {
353 "Unique identifier for this odu-switching-pool";
355 leaf switching-pool-type {
356 type org-openroadm-switching-pool-types:switching-pool-types;
358 list non-blocking-list {
363 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
365 leaf interconnect-bandwidth-unit {
368 "Switch fabric interconnect bandwidth unit rate in bits per second.
369 Represents granularity of switch fabric";
371 leaf interconnect-bandwidth {
374 "Total interconnect bandwidth for a non-blocking element expressed as
375 number of inter-connect-bandwidth units : corresponds to capable-
376 inter-connect bandwidth";
378 leaf available-interconnect-bandwidth {
381 "Total interconnect bandwidth available for a non-blocking element can use as
382 number of inter-connect-bandwidth units";
397 "Unique identifier for node in the network";
399 container node-info {
403 uses mc-capabilities;
405 uses switching-pool-lcp;