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 "Adding mux-profile information to support 400G Muxponder";
48 "OpenROADM version fix 7.1.0 -> 7.1";
52 "Refacto model to use grouping";
56 "Add operational and administrative state of device port
61 "Upgrading imported models to 7.1.0";
65 "Add support to differentiate flexible and fixed
66 grid capabilities with mc-capabilities";
70 "Add SAPI/DAPI lcp hash value";
74 "Add necessary parameters to consolidate OTN
75 and address ONAP MDONS use case";
79 "Add OTN data from device and necessary
80 to build node inside otn topology";
88 "Version 2. To manage device 2.2.1";
92 "Initial revision of port mapping model";
95 typedef openroadm-node-version {
114 "YANG enumerations for OpenROADM models;
115 enums should be same as OpenROADM models
116 defined in org-openroadm-common-types";
121 type org-openroadm-device-types:node-types;
123 "Identifier for node-type e.g Roadm, xponder";
125 leaf openroadm-version {
126 type openroadm-node-version;
131 "Common Language Location Identifier.";
136 "Vendor of the equipment";
141 "Physical resource model information.";
143 leaf node-ip-address {
144 type ietf-inet-types:ip-address;
146 "Current IP Address of device";
152 key "logical-connection-point";
154 "Mapping for Physical circuit pack/port/parent interfaces corresponding
155 to each logical connection point present in the node.";
156 leaf logical-connection-point {
159 leaf supporting-circuit-pack-name {
162 "Circuit pack where the logical connection point is located";
164 leaf supporting-port {
167 "Port where the logical connection point is located";
169 leaf supporting-oms {
172 "OMS interface provisioned on the port";
174 leaf supporting-ots {
177 "OTS interface provisioned on the port";
179 leaf port-direction {
182 "Useful for line port of XPDR, for which there is no indication
183 in its logical-termination-point naming";
188 "Useful to identify from portmapping client from network ports
191 leaf port-admin-state {
194 "admin-state of port";
196 leaf port-oper-state {
199 "operational-state of port";
201 leaf supporting-ethernet {
204 "Ethernet interface provisioned on the port";
206 leaf supporting-odu4 {
209 "ODU4 interface provisioned on the port";
211 leaf supporting-oduc4 {
214 "ODUC4 interface provisioned on the port for B100G support";
219 "Rate supported by the port";
221 leaf-list supported-interface-capability {
223 base org-openroadm-port-types:supported-if-capability;
226 uses mpdr-restrictions-grp;
228 type org-openroadm-device-types:xpdr-node-types;
230 leaf connection-map-lcp {
233 "For XPDR, associate two logical-connection-points from device/connnection-map
239 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
240 from device/partner port data";
245 "Hash value generated from node-id and lcp. This value will be used to map-
246 back SAPI and DAPI resource";
251 grouping mpdr-restrictions-grp {
252 container mpdr-restrictions {
253 when "../port-qual = 'switch-client' and ../../node-info/openroadm-version = '7.1'";
255 "This container provides the information about multiplexing of LO ODUs to HO ODUs
256 Caveat: If port advertizes multiple rates, this container does not work and results could
257 be wrong, meaning if the supported-interface-capabilities include, if-100GE-ODU4, if-OTU4-ODU4,
258 if-200GE-oduflexcbr, then min/max-trib-slot could be different";
260 type org-openroadm-otn-common-types:opucn-trib-slot-def;
262 "Minimum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
265 type org-openroadm-otn-common-types:opucn-trib-slot-def;
267 "Maximum OPUCn 5G trib slots in the form of TS #A.B (G.709)";
272 grouping mc-capabilities {
273 list mc-capabilities {
276 "Capabilities of the media channel associated with a degree SRG, or
277 XPDR (7.1 and above). ";
281 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
282 Where i, and j are the degree and SRG numbers respectively.
283 For XPDR type it will have one element in the leaf-list,
284 with name XPDR-mcprofile";
286 leaf slot-width-granularity {
287 type org-openroadm-common-optical-channel-types:frequency-GHz;
290 "Width of a slot measured in GHz.";
292 leaf center-freq-granularity {
293 type org-openroadm-common-optical-channel-types:frequency-GHz;
296 "Width of a slot measured in GHz.";
301 grouping cp-to-degree {
303 key "circuit-pack-name";
305 "This mapping helps locate degree number of the circuitpack that
306 does lldp protocol management";
307 leaf circuit-pack-name {
313 leaf interface-name {
319 grouping switching-pool-lcp {
320 list switching-pool-lcp {
321 key "switching-pool-number";
323 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
324 the logical-connection-points";
325 leaf switching-pool-number {
328 "Unique identifier for this odu-switching-pool";
330 leaf switching-pool-type {
331 type org-openroadm-switching-pool-types:switching-pool-types;
333 list non-blocking-list {
338 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
340 leaf interconnect-bandwidth-unit {
343 "Switch fabric interconnect bandwidth unit rate in bits per second.
344 Represents granularity of switch fabric";
346 leaf interconnect-bandwidth {
349 "Total interconnect bandwidth for a non-blocking element expressed as
350 number of inter-connect-bandwidth units : corresponds to capable-
351 inter-connect bandwidth";
353 leaf available-interconnect-bandwidth {
356 "Total interconnect bandwidth available for a non-blocking element can use as
357 number of inter-connect-bandwidth units";
372 "Unique identifier for node in the network";
374 container node-info {
378 uses mc-capabilities;
380 uses switching-pool-lcp;