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-switching-pool-types {
19 prefix org-openroadm-switching-pool-types;
20 revision-date 2019-11-29;
22 import org-openroadm-port-types {
23 prefix org-openroadm-port-types;
24 revision-date 2020-03-27;
26 import transportpce-common-types {
27 prefix org-transportpce-common-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 "OpenROADM version fix 7.1.0 -> 7.1";
48 "Refacto model to use grouping";
52 "Add operational and administrative state of device port
57 "Upgrading imported models to 7.1.0";
61 "Add support to differentiate flexible and fixed
62 grid capabilities with mc-capabilities";
66 "Add SAPI/DAPI lcp hash value";
70 "Add necessary parameters to consolidate OTN
71 and address ONAP MDONS use case";
75 "Add OTN data from device and necessary
76 to build node inside otn topology";
84 "Version 2. To manage device 2.2.1";
88 "Initial revision of port mapping model";
91 typedef openroadm-node-version {
110 "YANG enumerations for OpenROADM models;
111 enums should be same as OpenROADM models
112 defined in org-openroadm-common-types";
117 type org-openroadm-device-types:node-types;
119 "Identifier for node-type e.g Roadm, xponder";
121 leaf openroadm-version {
122 type openroadm-node-version;
127 "Common Language Location Identifier.";
132 "Vendor of the equipment";
137 "Physical resource model information.";
139 leaf node-ip-address {
140 type ietf-inet-types:ip-address;
142 "Current IP Address of device";
148 key "logical-connection-point";
150 "Mapping for Physical circuit pack/port/parent interfaces corresponding
151 to each logical connection point present in the node.";
152 leaf logical-connection-point {
155 leaf supporting-circuit-pack-name {
158 "Circuit pack where the logical connection point is located";
160 leaf supporting-port {
163 "Port where the logical connection point is located";
165 leaf supporting-oms {
168 "OMS interface provisioned on the port";
170 leaf supporting-ots {
173 "OTS interface provisioned on the port";
175 leaf port-direction {
178 "Useful for line port of XPDR, for which there is no indication
179 in its logical-termination-point naming";
184 "Useful to identify from portmapping client from network ports
187 leaf port-admin-state {
190 "admin-state of port";
192 leaf port-oper-state {
195 "operational-state of port";
197 leaf supporting-ethernet {
200 "Ethernet interface provisioned on the port";
202 leaf supporting-odu4 {
205 "ODU4 interface provisioned on the port";
210 "Rate supported by the port";
212 leaf-list supported-interface-capability {
214 base org-openroadm-port-types:supported-if-capability;
218 type org-openroadm-device-types:xpdr-node-types;
220 leaf connection-map-lcp {
223 "For XPDR, associate two logical-connection-points from device/connnection-map
229 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
230 from device/partner port data";
235 "Hash value generated from node-id and lcp. This value will be used to map-
236 back SAPI and DAPI resource";
241 grouping mc-capabilities {
242 list mc-capabilities {
243 when "../node-info/node-type = 'rdm'";
246 "Capabilities of the media channel associated with a degree or a SRG.";
250 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
251 Where i, and j are the degree and SRG numbers respectively";
253 leaf slot-width-granularity {
254 type org-openroadm-common-optical-channel-types:frequency-GHz;
257 "Width of a slot measured in GHz.";
259 leaf center-freq-granularity {
260 type org-openroadm-common-optical-channel-types:frequency-GHz;
263 "Width of a slot measured in GHz.";
268 grouping cp-to-degree {
270 key "circuit-pack-name";
272 "This mapping helps locate degree number of the circuitpack that
273 does lldp protocol management";
274 leaf circuit-pack-name {
280 leaf interface-name {
286 grouping switching-pool-lcp {
287 list switching-pool-lcp {
288 key "switching-pool-number";
290 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
291 the logical-connection-points";
292 leaf switching-pool-number {
295 "Unique identifier for this odu-switching-pool";
297 leaf switching-pool-type {
298 type org-openroadm-switching-pool-types:switching-pool-types;
300 list non-blocking-list {
305 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
307 leaf interconnect-bandwidth-unit {
310 "Switch fabric interconnect bandwidth unit rate in bits per second.
311 Represents granularity of switch fabric";
313 leaf interconnect-bandwidth {
316 "Total interconnect bandwidth for a non-blocking element expressed as
317 number of inter-connect-bandwidth units : corresponds to capable-
318 inter-connect bandwidth";
320 leaf available-interconnect-bandwidth {
323 "Total interconnect bandwidth available for a non-blocking element can use as
324 number of inter-connect-bandwidth units";
339 "Unique identifier for node in the network";
341 container node-info {
345 uses mc-capabilities;
347 uses switching-pool-lcp;