1 module org-openroadm-ethernet-interfaces {
3 namespace "http://org/openroadm/ethernet-interfaces";
4 prefix org-openroadm-eth-interfaces;
6 import org-openroadm-device {
7 prefix org-openroadm-device;
8 revision-date 2020-05-29;
10 import org-openroadm-interfaces {
12 revision-date 2019-11-29;
14 import org-openroadm-common-types {
15 prefix org-openroadm-common-types;
16 revision-date 2020-05-29;
18 import org-openroadm-maintenance-testsignal {
19 prefix org-openroadm-maint-testsignal;
20 revision-date 2020-05-29;
22 import org-openroadm-maintenance-loopback {
23 prefix org-openroadm-maint-loopback;
24 revision-date 2019-11-29;
32 "YANG definitions for device facility ethernet interfaces.
34 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
35 All other rights reserved.
37 Redistribution and use in source and binary forms, with or without modification,
38 are permitted provided that the following conditions are met:
40 * Redistributions of source code must retain the above copyright notice, this
41 list of conditions and the following disclaimer.
42 * Redistributions in binary form must reproduce the above copyright notice,
43 this list of conditions and the following disclaimer in the documentation and/or
44 other materials provided with the distribution.
45 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
46 contributors may be used to endorse or promote products derived from this software
47 without specific prior written permission.
49 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
50 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
51 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
52 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
53 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
54 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
55 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
56 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
57 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
58 POSSIBILITY OF SUCH DAMAGE.
60 Also contains code components extracted from IETF Interfaces. These code components
61 are copyrighted and licensed as follows:
63 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
66 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
67 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
68 publication of this document. Please review these documents carefully, as they
69 describe your rights and restrictions with respect to this document. Code Components
70 extracted from this document must include Simplified BSD License text as described in
71 Section 4.e of the Trust Legal Provisions and are provided without warranty as
72 described in the Simplified BSD License.";
102 revision 2018-09-28 {
106 revision 2018-05-30 {
110 revision 2018-03-30 {
114 revision 2017-12-15 {
118 revision 2017-09-29 {
122 revision 2017-07-28 {
124 "Version 2.0.1 - added revision-date to imports";
126 revision 2016-10-14 {
131 grouping eth-attributes {
135 "Set speed of the interface, unit mbps.
136 This is for ETH facility.
137 Applies to both management and transport Ethernet.
138 Optional, must be specified for transport Ethernet or when auto-negotiation is disabled.";
141 uses org-openroadm-common-types:fec-grouping {
143 "Forward Error Correction Choices.
144 Applies to transport Ethernet. Mandatory for transport Ethernet.";
162 "Set duplex selections.
163 Applies to both management and transport Ethernet.
164 Optional, default “full”. Transport Ethernet only supports full.";
166 leaf auto-negotiation {
171 "Auto Negotiation enabled";
176 "Auto Negotiation disabled";
181 "Set Auto Negotiation: Enabled/Disabled.
182 Applies to both management and transport Ethernet.
183 Optional, default “enabled”. Transport Ethernet only supports enabled.";
189 "Speed (UNKNOWN/AUTO/10/100/1000/10000) corresponding to the interface.
190 Applies to both management and transport Ethernet.";
196 "Duplex (HALF/FULL) corresponding to the interface.
197 Applies to both management and transport Ethernet.";
199 leaf max-frame-size {
203 "Maximum Frame Size. Applies to management Ethernet.";
205 container subrate-eth-sla {
206 presence "Explicit assignment of subrate ethernet allocation";
208 "SLA (Service Level Agreement) for subrate Ethernet.
209 Applies to transport Ethernet.";
210 uses org-openroadm-common-types:eth-rate-and-burst-size;
213 "Ethernet attributes grouping";
216 grouping ethernet-container {
219 "Ethernet Interfaces.
220 Maintenance test signal and loopback provisioning is supported for transport Ethernet.";
222 uses org-openroadm-maint-testsignal:maint-testsignal;
223 uses org-openroadm-maint-loopback:maint-loopback;
226 "Ethernet container grouping";
229 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
230 when "org-openroadm-device:type = 'openROADM-if:ethernetCsmacd'";
231 uses ethernet-container;
233 "Augment for interface";