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 of RPCs supported by OLM. Copyright (c) 2017
38 AT&T and others. All rights reserved. authors: Dhruv Bhardwaj
39 ( db929a@att.com ) Shweta Vachhani ( sv111y@att.com )";
43 "Refacto model to use grouping";
47 "Add operational and administrative state of device port
52 "Upgrading imported models to 7.1.0";
56 "Add support to differentiate flexible and fixed
57 grid capabilities with mc-capabilities";
61 "Add SAPI/DAPI lcp hash value";
65 "Add necessary parameters to consolidate OTN
66 and address ONAP MDONS use case";
70 "Add OTN data from device and necessary
71 to build node inside otn topology";
79 "Version 2. To manage device 2.2.1";
83 "Initial revision of port mapping model";
86 typedef openroadm-node-version {
108 type org-openroadm-device-types:node-types;
110 "Identifier for node-type e.g Roadm, xponder";
112 leaf openroadm-version {
113 type openroadm-node-version;
118 "Common Language Location Identifier.";
123 "Vendor of the equipment";
128 "Physical resource model information.";
130 leaf node-ip-address {
131 type ietf-inet-types:ip-address;
133 "Current IP Address of device";
139 key "logical-connection-point";
141 "Mapping for Physical circuit pack/port/parent interfaces corresponding
142 to each logical connection point present in the node.";
143 leaf logical-connection-point {
146 leaf supporting-circuit-pack-name {
149 "Circuit pack where the logical connection point is located";
151 leaf supporting-port {
154 "Port where the logical connection point is located";
156 leaf supporting-oms {
159 "OMS interface provisioned on the port";
161 leaf supporting-ots {
164 "OTS interface provisioned on the port";
166 leaf port-direction {
169 "Useful for line port of XPDR, for which there is no indication
170 in its logical-termination-point naming";
175 "Useful to identify from portmapping client from network ports
178 leaf port-admin-state {
181 "admin-state of port";
183 leaf port-oper-state {
186 "operational-state of port";
188 leaf supporting-ethernet {
191 "Ethernet interface provisioned on the port";
193 leaf supporting-odu4 {
196 "ODU4 interface provisioned on the port";
201 "Rate supported by the port";
203 leaf-list supported-interface-capability {
205 base org-openroadm-port-types:supported-if-capability;
209 type org-openroadm-device-types:xpdr-node-types;
211 leaf connection-map-lcp {
214 "For XPDR, associate two logical-connection-points from device/connnection-map
220 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
221 from device/partner port data";
226 "Hash value generated from node-id and lcp. This value will be used to map-
227 back SAPI and DAPI resource";
232 grouping mc-capabilities {
233 list mc-capabilities {
234 when "../node-info/node-type = 'rdm'";
237 "Capabilities of the media channel associated with a degree or a SRG.";
241 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
242 Where i, and j are the degree and SRG numbers respectively";
244 leaf slot-width-granularity {
245 type org-openroadm-common-optical-channel-types:frequency-GHz;
248 "Width of a slot measured in GHz.";
250 leaf center-freq-granularity {
251 type org-openroadm-common-optical-channel-types:frequency-GHz;
254 "Width of a slot measured in GHz.";
259 grouping cp-to-degree {
261 key "circuit-pack-name";
263 "This mapping helps locate degree number of the circuitpack that
264 does lldp protocol management";
265 leaf circuit-pack-name {
271 leaf interface-name {
277 grouping switching-pool-lcp {
278 list switching-pool-lcp {
279 key "switching-pool-number";
281 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data,
282 the logical-connection-points";
283 leaf switching-pool-number {
286 "Unique identifier for this odu-switching-pool";
288 leaf switching-pool-type {
289 type org-openroadm-switching-pool-types:switching-pool-types;
291 list non-blocking-list {
296 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
298 leaf interconnect-bandwidth-unit {
301 "Switch fabric interconnect bandwidth unit rate in bits per second.
302 Represents granularity of switch fabric";
304 leaf interconnect-bandwidth {
307 "Total interconnect bandwidth for a non-blocking element expressed as
308 number of inter-connect-bandwidth units : corresponds to capable-
309 inter-connect bandwidth";
311 leaf available-interconnect-bandwidth {
314 "Total interconnect bandwidth available for a non-blocking element can use as
315 number of inter-connect-bandwidth units";
330 "Unique identifier for node in the network";
332 container node-info {
336 uses mc-capabilities;
338 uses switching-pool-lcp;