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 2023-05-26;
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 "Add initial support to regenerators functionality; Modify the attribute
45 xponder-type to xpdr-type";
49 "Align org-openroadm-port-types model version to the latest one,
54 "Modify the container names for ODUCn and OTUCn supporting interfaces";
58 "Add supporting-otu interface in mapping";
62 "Adding mux-profile information to support 400G Muxponder";
66 "OpenROADM version fix 7.1.0 -> 7.1";
70 "Refacto model to use grouping";
74 "Add operational and administrative state of device port
79 "Upgrading imported models to 7.1.0";
83 "Add support to differentiate flexible and fixed
84 grid capabilities with mc-capabilities";
88 "Add SAPI/DAPI lcp hash value";
92 "Add necessary parameters to consolidate OTN
93 and address ONAP MDONS use case";
97 "Add OTN data from device and necessary
98 to build node inside otn topology";
100 revision 2019-11-15 {
104 revision 2019-07-02 {
106 "Version 2. To manage device 2.2.1";
108 revision 2017-02-28 {
110 "Initial revision of port mapping model";
113 typedef openroadm-node-version {
132 "YANG enumerations for OpenROADM models;
133 enums should be same as OpenROADM models
134 defined in org-openroadm-common-types";
139 type org-openroadm-device-types:node-types;
141 "Identifier for node-type e.g Roadm, xponder";
143 leaf openroadm-version {
144 type openroadm-node-version;
149 "Common Language Location Identifier.";
154 "Vendor of the equipment";
159 "Physical resource model information.";
161 leaf node-ip-address {
162 type ietf-inet-types:ip-address;
164 "Current IP Address of device";
170 key "logical-connection-point";
172 "Mapping for Physical circuit pack/port/parent interfaces corresponding
173 to each logical connection point present in the node.";
174 leaf logical-connection-point {
177 leaf supporting-circuit-pack-name {
180 "Circuit pack where the logical connection point is located";
182 leaf supporting-port {
185 "Port where the logical connection point is located";
187 leaf supporting-oms {
190 "OMS interface provisioned on the port";
192 leaf supporting-ots {
195 "OTS interface provisioned on the port";
197 leaf port-direction {
200 "Useful for line port of XPDR, for which there is no indication
201 in its logical-termination-point naming";
206 "Useful to identify from portmapping client from network ports
209 leaf port-admin-state {
212 "admin-state of port";
214 leaf port-oper-state {
217 "operational-state of port";
219 leaf supporting-ethernet {
222 "Ethernet interface provisioned on the port";
224 leaf supporting-otu4 {
227 "OTU4 interface provisioned on the port";
229 leaf supporting-otucn {
232 "OTUCn interface provisioned on the port for B100G support. This includes
233 OTUC2, OTUC3, OTUC4";
235 leaf supporting-odu4 {
238 "ODU4 interface provisioned on the port";
240 leaf supporting-oducn {
243 "ODUCn interface provisioned on the port for B100G support. This includes
244 ODUC2, ODUC3, ODUC4";
249 "Rate supported by the port";
251 leaf-list supported-interface-capability {
253 base org-openroadm-port-types:supported-if-capability;
256 uses mpdr-restrictions-grp;
257 uses regen-profiles-grp;
259 type org-openroadm-device-types:xpdr-node-types;
261 leaf connection-map-lcp {
264 "For XPDR, associate two logical-connection-points from device/connnection-map
270 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
271 from device/partner port data";
276 "Hash value generated from node-id and lcp. This value will be used to map-
277 back SAPI and DAPI resource";
282 grouping regen-profiles-grp {
283 container regen-profiles {
284 when "../xpdr-type = 'regen'";
286 "This container is only populated when the xpdr-type is regen";
287 leaf-list regen-profile {
289 "Supported regen profile, these are otsi-group-capabilities profile";
295 grouping mpdr-restrictions-grp {
296 container mpdr-restrictions {
297 when "../port-qual = 'switch-client' and ../../node-info/openroadm-version = '7.1'";
299 "This container provides the information about multiplexing of LO ODUs to HO ODUs
300 Caveat: If port advertizes multiple rates, this container does not work and results could
301 be wrong, meaning if the supported-interface-capabilities include, if-100GE-ODU4, if-OTU4-ODU4,
302 if-200GE-oduflexcbr, then min/max-trib-slot could be different";
304 type org-openroadm-otn-common-types:opucn-trib-slot-def;
306 "Minimum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
309 type org-openroadm-otn-common-types:opucn-trib-slot-def;
311 "Maximum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
316 grouping mc-capabilities {
317 list mc-capabilities {
320 "Capabilities of the media channel associated with a degree SRG, or
321 XPDR (7.1 and above). ";
325 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
326 Where i, and j are the degree and SRG numbers respectively.
327 For XPDR type it will have one element in the leaf-list,
328 with name XPDR-mcprofile";
330 leaf slot-width-granularity {
331 type org-openroadm-common-optical-channel-types:frequency-GHz;
334 "Width of a slot measured in GHz.";
336 leaf center-freq-granularity {
337 type org-openroadm-common-optical-channel-types:frequency-GHz;
340 "Width of a slot measured in GHz.";
345 grouping cp-to-degree {
347 key "circuit-pack-name";
349 "This mapping helps locate degree number of the circuitpack that
350 does lldp protocol management";
351 leaf circuit-pack-name {
357 leaf interface-name {
363 grouping switching-pool-lcp {
364 list switching-pool-lcp {
365 key "switching-pool-number";
367 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
368 the logical-connection-points";
369 leaf switching-pool-number {
372 "Unique identifier for this odu-switching-pool";
374 leaf switching-pool-type {
375 type org-openroadm-switching-pool-types:switching-pool-types;
377 list non-blocking-list {
382 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
384 leaf interconnect-bandwidth-unit {
387 "Switch fabric interconnect bandwidth unit rate in bits per second.
388 Represents granularity of switch fabric";
390 leaf interconnect-bandwidth {
393 "Total interconnect bandwidth for a non-blocking element expressed as
394 number of inter-connect-bandwidth units : corresponds to capable-
395 inter-connect bandwidth";
397 leaf available-interconnect-bandwidth {
400 "Total interconnect bandwidth available for a non-blocking element can use as
401 number of inter-connect-bandwidth units";
416 "Unique identifier for node in the network";
418 container node-info {
422 uses mc-capabilities;
424 uses switching-pool-lcp;