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;
31 "transportPCE committers - ODL";
33 "YANG definitions of RPCs supported by OLM. Copyright (c) 2017
34 AT&T and others. All rights reserved. authors: Dhruv Bhardwaj
35 ( db929a@att.com ) Shweta Vachhani ( sv111y@att.com )";
39 "Upgrading imported models to 7.1.0";
43 "Add support to differentiate flexible and fixed
44 grid capabilities with mc-capabilities";
48 "Add SAPI/DAPI lcp hash value";
52 "Add necessary parameters to consolidate OTN
53 and address ONAP MDONS use case";
57 "Add OTN data from device and necessary
58 to build node inside otn topology";
66 "Version 2. To manage device 2.2.1";
70 "Initial revision of port mapping model";
79 "Unique identifier for node in the network";
83 type org-openroadm-device-types:node-types;
85 "Identifier for node-type e.g Roadm, xponder";
87 leaf openroadm-version {
109 "Common Language Location Identifier.";
114 "Vendor of the equipment";
119 "Physical resource model information.";
121 leaf node-ip-address {
122 type ietf-inet-types:ip-address;
124 "Current IP Address of device";
128 key "logical-connection-point";
130 "Mapping for Physical circuit pack/port/parent interfaces corresponding
131 to each logical connection point present in the node.";
132 leaf logical-connection-point {
135 leaf supporting-circuit-pack-name {
138 "Circuit pack where the logical connection point is located";
140 leaf supporting-port {
143 "Port where the logical connection point is located";
145 leaf supporting-oms {
148 "OMS interface provisioned on the port";
150 leaf supporting-ots {
153 "OTS interface provisioned on the port";
155 leaf port-direction {
158 "Useful for line port of XPDR, for which there is no indication
159 in its logical-termination-point naming";
164 "Useful to identify from portmapping client from network ports
167 leaf supporting-ethernet {
170 "Ethernet interface provisioned on the port";
172 leaf supporting-odu4 {
175 "ODU4 interface provisioned on the port";
180 "Rate supported by the port";
182 leaf-list supported-interface-capability {
184 base org-openroadm-port-types:supported-if-capability;
188 type org-openroadm-device-types:xpdr-node-types;
190 leaf connection-map-lcp {
193 "For XPDR, associate two logical-connection-points from device/connnection-map
199 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
200 from device/partner port data";
205 "Hash value generated from node-id and lcp. This value will be used to map-
206 back SAPI and DAPI resource";
209 list mc-capabilities {
210 when "../node-info/node-type = 'rdm'";
213 "Capabilities of the media channel associated with a degree or a SRG.";
217 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
218 Where i, and j are the degree and SRG numbers respectively";
220 leaf slot-width-granularity {
221 type org-openroadm-common-optical-channel-types:frequency-GHz;
224 "Width of a slot measured in GHz.";
226 leaf center-freq-granularity {
227 type org-openroadm-common-optical-channel-types:frequency-GHz;
230 "Width of a slot measured in GHz.";
234 key "circuit-pack-name";
236 "This mapping helps locate degree number of the circuitpack that
237 does lldp protocol management";
238 leaf circuit-pack-name {
244 leaf interface-name {
248 list switching-pool-lcp {
249 key "switching-pool-number";
251 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data, the logical-connection-points";
252 leaf switching-pool-number {
255 "Unique identifier for this odu-switching-pool";
257 leaf switching-pool-type {
258 type org-openroadm-switching-pool-types:switching-pool-types;
260 list non-blocking-list {
265 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
267 leaf interconnect-bandwidth-unit {
270 "Switch fabric interconnect bandwidth unit rate in bits per second.
271 Represents granularity of switch fabric";
273 leaf interconnect-bandwidth {
276 "Total interconnect bandwidth for a non-blocking element expressed as
277 number of inter-connect-bandwidth units : corresponds to capable-
278 inter-connect bandwidth";
280 leaf available-interconnect-bandwidth {
283 "Total interconnect bandwidth available for a non-blocking element can use as
284 number of inter-connect-bandwidth units";