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-03-27;
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 supporting-otu interface in mapping";
48 "Adding mux-profile information to support 400G Muxponder";
52 "OpenROADM version fix 7.1.0 -> 7.1";
56 "Refacto model to use grouping";
60 "Add operational and administrative state of device port
65 "Upgrading imported models to 7.1.0";
69 "Add support to differentiate flexible and fixed
70 grid capabilities with mc-capabilities";
74 "Add SAPI/DAPI lcp hash value";
78 "Add necessary parameters to consolidate OTN
79 and address ONAP MDONS use case";
83 "Add OTN data from device and necessary
84 to build node inside otn topology";
92 "Version 2. To manage device 2.2.1";
96 "Initial revision of port mapping model";
99 typedef openroadm-node-version {
118 "YANG enumerations for OpenROADM models;
119 enums should be same as OpenROADM models
120 defined in org-openroadm-common-types";
125 type org-openroadm-device-types:node-types;
127 "Identifier for node-type e.g Roadm, xponder";
129 leaf openroadm-version {
130 type openroadm-node-version;
135 "Common Language Location Identifier.";
140 "Vendor of the equipment";
145 "Physical resource model information.";
147 leaf node-ip-address {
148 type ietf-inet-types:ip-address;
150 "Current IP Address of device";
156 key "logical-connection-point";
158 "Mapping for Physical circuit pack/port/parent interfaces corresponding
159 to each logical connection point present in the node.";
160 leaf logical-connection-point {
163 leaf supporting-circuit-pack-name {
166 "Circuit pack where the logical connection point is located";
168 leaf supporting-port {
171 "Port where the logical connection point is located";
173 leaf supporting-oms {
176 "OMS interface provisioned on the port";
178 leaf supporting-ots {
181 "OTS interface provisioned on the port";
183 leaf port-direction {
186 "Useful for line port of XPDR, for which there is no indication
187 in its logical-termination-point naming";
192 "Useful to identify from portmapping client from network ports
195 leaf port-admin-state {
198 "admin-state of port";
200 leaf port-oper-state {
203 "operational-state of port";
205 leaf supporting-ethernet {
208 "Ethernet interface provisioned on the port";
210 leaf supporting-otu4 {
213 "OTU4 interface provisioned on the port";
215 leaf supporting-otuc4 {
218 "OTUC4 interface provisioned on the port";
220 leaf supporting-odu4 {
223 "ODU4 interface provisioned on the port";
225 leaf supporting-oduc4 {
228 "ODUC4 interface provisioned on the port for B100G support";
233 "Rate supported by the port";
235 leaf-list supported-interface-capability {
237 base org-openroadm-port-types:supported-if-capability;
240 uses mpdr-restrictions-grp;
242 type org-openroadm-device-types:xpdr-node-types;
244 leaf connection-map-lcp {
247 "For XPDR, associate two logical-connection-points from device/connnection-map
253 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
254 from device/partner port data";
259 "Hash value generated from node-id and lcp. This value will be used to map-
260 back SAPI and DAPI resource";
265 grouping mpdr-restrictions-grp {
266 container mpdr-restrictions {
267 when "../port-qual = 'switch-client' and ../../node-info/openroadm-version = '7.1'";
269 "This container provides the information about multiplexing of LO ODUs to HO ODUs
270 Caveat: If port advertizes multiple rates, this container does not work and results could
271 be wrong, meaning if the supported-interface-capabilities include, if-100GE-ODU4, if-OTU4-ODU4,
272 if-200GE-oduflexcbr, then min/max-trib-slot could be different";
274 type org-openroadm-otn-common-types:opucn-trib-slot-def;
276 "Minimum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
279 type org-openroadm-otn-common-types:opucn-trib-slot-def;
281 "Maximum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
286 grouping mc-capabilities {
287 list mc-capabilities {
290 "Capabilities of the media channel associated with a degree SRG, or
291 XPDR (7.1 and above). ";
295 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
296 Where i, and j are the degree and SRG numbers respectively.
297 For XPDR type it will have one element in the leaf-list,
298 with name XPDR-mcprofile";
300 leaf slot-width-granularity {
301 type org-openroadm-common-optical-channel-types:frequency-GHz;
304 "Width of a slot measured in GHz.";
306 leaf center-freq-granularity {
307 type org-openroadm-common-optical-channel-types:frequency-GHz;
310 "Width of a slot measured in GHz.";
315 grouping cp-to-degree {
317 key "circuit-pack-name";
319 "This mapping helps locate degree number of the circuitpack that
320 does lldp protocol management";
321 leaf circuit-pack-name {
327 leaf interface-name {
333 grouping switching-pool-lcp {
334 list switching-pool-lcp {
335 key "switching-pool-number";
337 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
338 the logical-connection-points";
339 leaf switching-pool-number {
342 "Unique identifier for this odu-switching-pool";
344 leaf switching-pool-type {
345 type org-openroadm-switching-pool-types:switching-pool-types;
347 list non-blocking-list {
352 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
354 leaf interconnect-bandwidth-unit {
357 "Switch fabric interconnect bandwidth unit rate in bits per second.
358 Represents granularity of switch fabric";
360 leaf interconnect-bandwidth {
363 "Total interconnect bandwidth for a non-blocking element expressed as
364 number of inter-connect-bandwidth units : corresponds to capable-
365 inter-connect bandwidth";
367 leaf available-interconnect-bandwidth {
370 "Total interconnect bandwidth available for a non-blocking element can use as
371 number of inter-connect-bandwidth units";
386 "Unique identifier for node in the network";
388 container node-info {
392 uses mc-capabilities;
394 uses switching-pool-lcp;