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 "Modify the container names for ODUCn and OTUCn supporting interfaces";
48 "Add supporting-otu interface in mapping";
52 "Adding mux-profile information to support 400G Muxponder";
56 "OpenROADM version fix 7.1.0 -> 7.1";
60 "Refacto model to use grouping";
64 "Add operational and administrative state of device port
69 "Upgrading imported models to 7.1.0";
73 "Add support to differentiate flexible and fixed
74 grid capabilities with mc-capabilities";
78 "Add SAPI/DAPI lcp hash value";
82 "Add necessary parameters to consolidate OTN
83 and address ONAP MDONS use case";
87 "Add OTN data from device and necessary
88 to build node inside otn topology";
96 "Version 2. To manage device 2.2.1";
100 "Initial revision of port mapping model";
103 typedef openroadm-node-version {
122 "YANG enumerations for OpenROADM models;
123 enums should be same as OpenROADM models
124 defined in org-openroadm-common-types";
129 type org-openroadm-device-types:node-types;
131 "Identifier for node-type e.g Roadm, xponder";
133 leaf openroadm-version {
134 type openroadm-node-version;
139 "Common Language Location Identifier.";
144 "Vendor of the equipment";
149 "Physical resource model information.";
151 leaf node-ip-address {
152 type ietf-inet-types:ip-address;
154 "Current IP Address of device";
160 key "logical-connection-point";
162 "Mapping for Physical circuit pack/port/parent interfaces corresponding
163 to each logical connection point present in the node.";
164 leaf logical-connection-point {
167 leaf supporting-circuit-pack-name {
170 "Circuit pack where the logical connection point is located";
172 leaf supporting-port {
175 "Port where the logical connection point is located";
177 leaf supporting-oms {
180 "OMS interface provisioned on the port";
182 leaf supporting-ots {
185 "OTS interface provisioned on the port";
187 leaf port-direction {
190 "Useful for line port of XPDR, for which there is no indication
191 in its logical-termination-point naming";
196 "Useful to identify from portmapping client from network ports
199 leaf port-admin-state {
202 "admin-state of port";
204 leaf port-oper-state {
207 "operational-state of port";
209 leaf supporting-ethernet {
212 "Ethernet interface provisioned on the port";
214 leaf supporting-otu4 {
217 "OTU4 interface provisioned on the port";
219 leaf supporting-otucn {
222 "OTUCn interface provisioned on the port for B100G support. This includes
223 OTUC2, OTUC3, OTUC4";
225 leaf supporting-odu4 {
228 "ODU4 interface provisioned on the port";
230 leaf supporting-oducn {
233 "ODUCn interface provisioned on the port for B100G support. This includes
234 ODUC2, ODUC3, ODUC4";
239 "Rate supported by the port";
241 leaf-list supported-interface-capability {
243 base org-openroadm-port-types:supported-if-capability;
246 uses mpdr-restrictions-grp;
248 type org-openroadm-device-types:xpdr-node-types;
250 leaf connection-map-lcp {
253 "For XPDR, associate two logical-connection-points from device/connnection-map
259 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
260 from device/partner port data";
265 "Hash value generated from node-id and lcp. This value will be used to map-
266 back SAPI and DAPI resource";
271 grouping mpdr-restrictions-grp {
272 container mpdr-restrictions {
273 when "../port-qual = 'switch-client' and ../../node-info/openroadm-version = '7.1'";
275 "This container provides the information about multiplexing of LO ODUs to HO ODUs
276 Caveat: If port advertizes multiple rates, this container does not work and results could
277 be wrong, meaning if the supported-interface-capabilities include, if-100GE-ODU4, if-OTU4-ODU4,
278 if-200GE-oduflexcbr, then min/max-trib-slot could be different";
280 type org-openroadm-otn-common-types:opucn-trib-slot-def;
282 "Minimum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
285 type org-openroadm-otn-common-types:opucn-trib-slot-def;
287 "Maximum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
292 grouping mc-capabilities {
293 list mc-capabilities {
296 "Capabilities of the media channel associated with a degree SRG, or
297 XPDR (7.1 and above). ";
301 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
302 Where i, and j are the degree and SRG numbers respectively.
303 For XPDR type it will have one element in the leaf-list,
304 with name XPDR-mcprofile";
306 leaf slot-width-granularity {
307 type org-openroadm-common-optical-channel-types:frequency-GHz;
310 "Width of a slot measured in GHz.";
312 leaf center-freq-granularity {
313 type org-openroadm-common-optical-channel-types:frequency-GHz;
316 "Width of a slot measured in GHz.";
321 grouping cp-to-degree {
323 key "circuit-pack-name";
325 "This mapping helps locate degree number of the circuitpack that
326 does lldp protocol management";
327 leaf circuit-pack-name {
333 leaf interface-name {
339 grouping switching-pool-lcp {
340 list switching-pool-lcp {
341 key "switching-pool-number";
343 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
344 the logical-connection-points";
345 leaf switching-pool-number {
348 "Unique identifier for this odu-switching-pool";
350 leaf switching-pool-type {
351 type org-openroadm-switching-pool-types:switching-pool-types;
353 list non-blocking-list {
358 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
360 leaf interconnect-bandwidth-unit {
363 "Switch fabric interconnect bandwidth unit rate in bits per second.
364 Represents granularity of switch fabric";
366 leaf interconnect-bandwidth {
369 "Total interconnect bandwidth for a non-blocking element expressed as
370 number of inter-connect-bandwidth units : corresponds to capable-
371 inter-connect bandwidth";
373 leaf available-interconnect-bandwidth {
376 "Total interconnect bandwidth available for a non-blocking element can use as
377 number of inter-connect-bandwidth units";
392 "Unique identifier for node in the network";
394 container node-info {
398 uses mc-capabilities;
400 uses switching-pool-lcp;