HoneyNode Java 11 support for 221 devices
[transportpce.git] / tests / honeynode / 2.2.1 / honeynode-plugin-impl / src / main / resources / honeycomb-minimal-resources / config / yang / devices / org-openroadm-ethernet-interfaces@2018-10-19.yang
1 module org-openroadm-ethernet-interfaces {
2   namespace "http://org/openroadm/ethernet-interfaces";
3   prefix org-openroadm-eth-interfaces;
4
5   import org-openroadm-device {
6     prefix org-openroadm-device;
7     revision-date 2018-10-19;
8   }
9   import org-openroadm-interfaces {
10     prefix openROADM-if;
11     revision-date 2017-06-26;
12   }
13
14   organization
15     "Open ROADM MSA";
16   contact
17     "OpenROADM.org";
18   description
19     "YANG definitions for device facility ethernet interfaces.
20
21      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
22      AT&T Intellectual Property.  All other rights reserved.
23
24      Redistribution and use in source and binary forms, with or without modification,
25      are permitted provided that the following conditions are met:
26
27      * Redistributions of source code must retain the above copyright notice, this
28        list of conditions and the following disclaimer.
29      * Redistributions in binary form must reproduce the above copyright notice,
30        this list of conditions and the following disclaimer in the documentation and/or
31        other materials provided with the distribution.
32      * Neither the Members of the Open ROADM MSA Agreement nor the names of its
33        contributors may be used to endorse or promote products derived from this software
34        without specific prior written permission.
35
36      THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT ''AS IS''
37      AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
38      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
39      IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA  AGREEMENT BE LIABLE FOR ANY DIRECT,
40      INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
41      NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  LOSS OF USE, DATA,
42      OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
43      WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
44      ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
45      POSSIBILITY OF SUCH DAMAGE.
46
47      Also contains code components extracted from IETF Interfaces.  These code components
48      are copyrighted and licensed as follows:
49
50      Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
51      All rights reserved.
52
53      This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
54      to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
55      publication of this document. Please review these documents carefully, as they
56      describe your rights and restrictions with respect to this document. Code Components
57      extracted from this document must include Simplified BSD License text as described in
58      Section 4.e of the Trust Legal Provisions and are provided without warranty as
59      described in the Simplified BSD License.";
60
61   revision 2018-10-19 {
62     description
63       "Version 2.2.1";
64   }
65   revision 2017-12-15 {
66     description
67       "Version 2.2";
68   }
69   revision 2017-09-29 {
70     description
71       "Version 2.1";
72   }
73   revision 2017-07-28 {
74     description
75       "Version 2.0.1 - added revision-date to imports";
76   }
77   revision 2016-10-14 {
78     description
79       "Version 1.2";
80   }
81
82   grouping eth-attributes {
83     leaf speed {
84       type uint32;
85       description
86         "Set speed of the interface, unit mbps.
87          This is for ETH facility. ";
88     }
89     leaf fec {
90       type enumeration {
91         enum "off";
92         enum "rsfec";
93       }
94       description
95         "Forward Error Correction Choices. ";
96     }
97     leaf duplex {
98       type enumeration {
99         enum "half" {
100           value 0;
101           description
102             "half duplex";
103         }
104         enum "full" {
105           value 1;
106           description
107             "full duplex";
108         }
109       }
110       default "full";
111       description
112         "Set duplex selections.";
113     }
114     leaf mtu {
115       type uint32 {
116         range "1518..9000";
117       }
118       default "1522";
119       description
120         "Set Maximum Frame Size.";
121     }
122     leaf auto-negotiation {
123       type enumeration {
124         enum "enabled" {
125           value 1;
126           description
127             "Auto Negotiation enabled";
128         }
129         enum "disabled" {
130           value 0;
131           description
132             "Auto Negotiation disabled";
133         }
134       }
135       default "enabled";
136       description
137         "Set Auto Negotiation: Enabled/Disabled.";
138     }
139     leaf curr-speed {
140       type string;
141       config false;
142       description
143         "speed (UNKNOWN/AUTO/10/100/1000/10000) corresponding to the interface";
144     }
145     leaf curr-duplex {
146       type string;
147       config false;
148       description
149         "duplex (HALF/FULL) corresponding to the interface";
150     }
151   }
152
153   grouping ethernet-container {
154     container ethernet {
155       description
156         "Ethernet Interfaces";
157       uses eth-attributes;
158     }
159   }
160
161   augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
162     when "org-openroadm-device:type = 'openROADM-if:ethernetCsmacd'";
163     uses ethernet-container;
164   }
165 }