1 module transportpce-portmapping {
3 namespace "http://org/opendaylight/transportpce/portmapping";
4 prefix org-opendaylight-transportpce-portmapping;
6 import org-openroadm-common-types {
7 prefix org-openroadm-common-types;
8 revision-date 2018-10-19;
10 import org-openroadm-switching-pool-types {
11 prefix org-openroadm-switching-pool-types;
12 revision-date 2017-12-15;
14 import org-openroadm-port-types {
15 prefix org-openroadm-port-types;
16 revision-date 2018-10-19;
18 import ietf-inet-types {
19 prefix ietf-inet-types;
20 revision-date 2013-07-15;
26 "transportPCE committers - ODL";
28 "YANG definitions of RPCs supported by OLM. Copyright (c) 2017
29 AT&T and others. All rights reserved. authors: Dhruv Bhardwaj
30 ( db929a@att.com ) Shweta Vachhani ( sv111y@att.com )";
34 "Add support to differentiate flexible and fixed
35 grid capabilities with mc-capabilities";
39 "Add SAPI/DAPI lcp hash value";
43 "Add necessary parameters to consolidate OTN
44 and address ONAP MDONS use case";
48 "Add OTN data from device and necessary
49 to build node inside otn topology";
57 "Version 2. To manage device 2.2.1";
61 "Initial revision of port mapping model";
70 "Unique identifier for node in the network";
74 type org-openroadm-common-types:node-types;
76 "Identifier for node-type e.g Roadm, xponder";
78 leaf openroadm-version {
95 "Common Language Location Identifier.";
100 "Vendor of the equipment";
105 "Physical resource model information.";
107 leaf node-ip-address {
108 type ietf-inet-types:ip-address;
110 "Current IP Address of device";
114 key "logical-connection-point";
116 "Mapping for Physical circuit pack/port/parent interfaces corresponding
117 to each logical connection point present in the node.";
118 leaf logical-connection-point {
121 leaf supporting-circuit-pack-name {
124 "Circuit pack where the logical connection point is located";
126 leaf supporting-port {
129 "Port where the logical connection point is located";
131 leaf supporting-oms {
134 "OMS interface provisioned on the port";
136 leaf supporting-ots {
139 "OTS interface provisioned on the port";
141 leaf port-direction {
144 "Useful for line port of XPDR, for which there is no indication
145 in its logical-termination-point naming";
150 "Useful to identify from portmapping client from network ports
153 leaf supporting-ethernet {
156 "Ethernet interface provisioned on the port";
158 leaf supporting-odu4 {
161 "ODU4 interface provisioned on the port";
166 "Rate supported by the port";
168 leaf-list supported-interface-capability {
170 base org-openroadm-port-types:supported-if-capability;
174 type org-openroadm-common-types:xpdr-node-types;
176 leaf connection-map-lcp {
179 "For XPDR, associate two logical-connection-points from device/connnection-map
185 "For XPDR unidirectional NETWORK port, associate two logical-connection-points
186 from device/partner port data";
191 "Hash value generated from node-id and lcp. This value will be used to map-
192 back SAPI and DAPI resource";
195 list mc-capabilities {
197 when "../node-info/node-type = 'rdm'";
199 "Capabilities of the media channel associated with a degree or a SRG.";
203 "Name of the node, it has the format of DEGi-TTP or SRGj-PP
204 Where i, and j are the degree and SRG numbers respectively";
206 leaf slot-width-granularity {
207 type org-openroadm-common-types:frequency-GHz;
210 "Width of a slot measured in GHz.";
212 leaf center-freq-granularity {
213 type org-openroadm-common-types:frequency-GHz;
216 "Width of a slot measured in GHz.";
220 key "circuit-pack-name";
222 "This mapping helps locate degree number of the circuitpack that
223 does lldp protocol management";
224 leaf circuit-pack-name {
230 leaf interface-name {
234 list switching-pool-lcp {
235 key "switching-pool-number";
237 "For MUXPDR and SWITCH, associates from device/odu-switching-pools data, the logical-connection-points";
238 leaf switching-pool-number {
241 "Unique identifier for this odu-switching-pool";
243 leaf switching-pool-type {
244 type org-openroadm-switching-pool-types:switching-pool-types;
246 list non-blocking-list {
251 "Identifier for this non-blocking-list. Unique within odu-switching-pool";
253 leaf interconnect-bandwidth-unit {
256 "Switch fabric interconnect bandwidth unit rate in bits per second.
257 Represents granularity of switch fabric";
259 leaf interconnect-bandwidth {
262 "Total interconnect bandwidth for a non-blocking element expressed as
263 number of inter-connect-bandwidth units : corresponds to capable-
264 inter-connect bandwidth";
266 leaf available-interconnect-bandwidth {
269 "Total interconnect bandwidth available for a non-blocking element can use as
270 number of inter-connect-bandwidth units";