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 "Upgrading imported models to 7.1.0";
47 "Add support to differentiate flexible and fixed
48 grid capabilities with mc-capabilities";
52 "Add SAPI/DAPI lcp hash value";
56 "Add necessary parameters to consolidate OTN
57 and address ONAP MDONS use case";
61 "Add OTN data from device and necessary
62 to build node inside otn topology";
70 "Version 2. To manage device 2.2.1";
74 "Initial revision of port mapping model";
83 "Unique identifier for node in the network";
87 type org-openroadm-device-types:node-types;
89 "Identifier for node-type e.g Roadm, xponder";
91 leaf openroadm-version {
113 "Common Language Location Identifier.";
118 "Vendor of the equipment";
123 "Physical resource model information.";
125 leaf node-ip-address {
126 type ietf-inet-types:ip-address;
128 "Current IP Address of device";
132 key "logical-connection-point";
134 "Mapping for Physical circuit pack/port/parent interfaces corresponding
135 to each logical connection point present in the node.";
136 leaf logical-connection-point {
139 leaf supporting-circuit-pack-name {
142 "Circuit pack where the logical connection point is located";
144 leaf supporting-port {
147 "Port where the logical connection point is located";
149 leaf supporting-oms {
152 "OMS interface provisioned on the port";
154 leaf supporting-ots {
157 "OTS interface provisioned on the port";
159 leaf port-direction {
162 "Useful for line port of XPDR, for which there is no indication
163 in its logical-termination-point naming";
168 "Useful to identify from portmapping client from network ports
171 leaf port-admin-state {
174 "admin-state of port";
176 leaf port-oper-state {
179 "operational-state of port";
181 leaf supporting-ethernet {
184 "Ethernet interface provisioned on the port";
186 leaf supporting-odu4 {
189 "ODU4 interface provisioned on the port";
194 "Rate supported by the port";
196 leaf-list supported-interface-capability {
198 base org-openroadm-port-types:supported-if-capability;
202 type org-openroadm-device-types:xpdr-node-types;
204 leaf connection-map-lcp {
207 "For XPDR, associate two logical-connection-points from device/connnection-map
213 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
214 from device/partner port data";
219 "Hash value generated from node-id and lcp. This value will be used to map-
220 back SAPI and DAPI resource";
223 list mc-capabilities {
224 when "../node-info/node-type = 'rdm'";
227 "Capabilities of the media channel associated with a degree or a SRG.";
231 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
232 Where i, and j are the degree and SRG numbers respectively";
234 leaf slot-width-granularity {
235 type org-openroadm-common-optical-channel-types:frequency-GHz;
238 "Width of a slot measured in GHz.";
240 leaf center-freq-granularity {
241 type org-openroadm-common-optical-channel-types:frequency-GHz;
244 "Width of a slot measured in GHz.";
248 key "circuit-pack-name";
250 "This mapping helps locate degree number of the circuitpack that
251 does lldp protocol management";
252 leaf circuit-pack-name {
258 leaf interface-name {
262 list switching-pool-lcp {
263 key "switching-pool-number";
265 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data, the logical-connection-points";
266 leaf switching-pool-number {
269 "Unique identifier for this odu-switching-pool";
271 leaf switching-pool-type {
272 type org-openroadm-switching-pool-types:switching-pool-types;
274 list non-blocking-list {
279 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
281 leaf interconnect-bandwidth-unit {
284 "Switch fabric interconnect bandwidth unit rate in bits per second.
285 Represents granularity of switch fabric";
287 leaf interconnect-bandwidth {
290 "Total interconnect bandwidth for a non-blocking element expressed as
291 number of inter-connect-bandwidth units : corresponds to capable-
292 inter-connect bandwidth";
294 leaf available-interconnect-bandwidth {
297 "Total interconnect bandwidth available for a non-blocking element can use as
298 number of inter-connect-bandwidth units";