Add RFC8519 models
[mdsal.git] / model / ietf / rfc8519-ietf-ethertypes / src / main / yang / ietf-ethertypes@2019-03-04.yang
1 module ietf-ethertypes {
2   namespace "urn:ietf:params:xml:ns:yang:ietf-ethertypes";
3   prefix ethertypes;
4
5   organization
6     "IETF NETMOD (Network Modeling) Working Group.";
7
8   contact
9     "WG Web:   <https://datatracker.ietf.org/wg/netmod/>
10      WG List:  <mailto:netmod@ietf.org>
11
12      Editor:   Mahesh Jethanandani
13                <mjethanandani@gmail.com>";
14
15   description
16     "This module contains common definitions for the
17      Ethertype used by different modules.  It is a
18      placeholder module, till such time that IEEE
19      starts a project to define these Ethertypes
20      and publishes a standard.
21
22      At that time, this module can be deprecated.
23
24      Copyright (c) 2019 IETF Trust and the persons identified as
25      the document authors.  All rights reserved.
26
27      Redistribution and use in source and binary forms, with or
28      without modification, is permitted pursuant to, and subject
29      to the license terms contained in, the Simplified BSD
30      License set forth in Section 4.c of the IETF Trust's Legal
31      Provisions Relating to IETF Documents
32      (http://trustee.ietf.org/license-info).
33
34      This version of this YANG module is part of RFC 8519; see
35      the RFC itself for full legal notices.";
36
37   revision 2019-03-04 {
38     description
39       "Initial revision.";
40     reference
41       "RFC 8519: YANG Data Model for Network Access Control
42                  Lists (ACLs).";
43   }
44
45   typedef ethertype {
46     type union {
47       type uint16;
48       type enumeration {
49         enum ipv4 {
50           value 2048;
51           description
52             "Internet Protocol version 4 (IPv4) with a
53              hex value of 0x0800.";
54           reference
55             "RFC 791: Internet Protocol.";
56         }
57         enum arp {
58           value 2054;
59           description
60             "Address Resolution Protocol (ARP) with a
61              hex value of 0x0806.";
62           reference
63             "RFC 826: An Ethernet Address Resolution Protocol: Or
64                       Converting Network Protocol Addresses to 48.bit
65                       Ethernet Address for Transmission on Ethernet
66                       Hardware.";
67         }
68         enum wlan {
69           value 2114;
70           description
71             "Wake-on-LAN.  Hex value of 0x0842.";
72         }
73         enum trill {
74           value 8947;
75           description
76             "Transparent Interconnection of Lots of Links.
77              Hex value of 0x22F3.";
78           reference
79             "RFC 6325: Routing Bridges (RBridges): Base Protocol
80                        Specification.";
81         }
82         enum srp {
83           value 8938;
84           description
85             "Stream Reservation Protocol.  Hex value of
86              0x22EA.";
87           reference
88             "IEEE 801.1Q-2011.";
89         }
90         enum decnet {
91           value 24579;
92           description
93             "DECnet Phase IV.  Hex value of 0x6003.";
94         }
95         enum rarp {
96           value 32821;
97           description
98             "Reverse Address Resolution Protocol.
99              Hex value 0x8035.";
100           reference
101             "RFC 903: A Reverse Address Resolution Protocol.";
102         }
103         enum appletalk {
104           value 32923;
105           description
106             "Appletalk (Ethertalk).  Hex value of 0x809B.";
107         }
108         enum aarp {
109           value 33011;
110           description
111             "Appletalk Address Resolution Protocol.  Hex value
112              of 0x80F3.";
113         }
114         enum vlan {
115           value 33024;
116           description
117             "VLAN-tagged frame (IEEE 802.1Q) and Shortest Path
118              Bridging IEEE 802.1aq with Network-Network
119              Interface (NNI) compatibility.  Hex value of
120              0x8100.";
121           reference
122             "IEEE 802.1Q.";
123         }
124         enum ipx {
125           value 33079;
126           description
127             "Internetwork Packet Exchange (IPX).  Hex value
128              of 0x8137.";
129         }
130         enum qnx {
131           value 33284;
132           description
133             "QNX Qnet.  Hex value of 0x8204.";
134         }
135         enum ipv6 {
136           value 34525;
137           description
138             "Internet Protocol Version 6 (IPv6).  Hex value
139              of 0x86DD.";
140           reference
141             "RFC 8200: Internet Protocol, Version 6 (IPv6)
142                        Specification
143              RFC 8201: Path MTU Discovery for IP version 6.";
144         }
145         enum efc {
146           value 34824;
147           description
148             "Ethernet flow control using pause frames.
149              Hex value of 0x8808.";
150           reference
151             "IEEE 802.1Qbb.";
152         }
153         enum esp {
154           value 34825;
155           description
156             "Ethernet Slow Protocol.  Hex value of 0x8809.";
157           reference
158             "IEEE 802.3-2015.";
159         }
160         enum cobranet {
161           value 34841;
162           description
163             "CobraNet.  Hex value of 0x8819.";
164         }
165         enum mpls-unicast {
166           value 34887;
167           description
168             "Multiprotocol Label Switching (MPLS) unicast traffic.
169              Hex value of 0x8847.";
170           reference
171             "RFC 3031: Multiprotocol Label Switching Architecture.";
172         }
173         enum mpls-multicast {
174           value 34888;
175           description
176             "MPLS multicast traffic.  Hex value of 0x8848.";
177           reference
178             "RFC 3031: Multiprotocol Label Switching Architecture.";
179         }
180         enum pppoe-discovery {
181           value 34915;
182           description
183             "Point-to-Point Protocol over Ethernet.  Used during
184              the discovery process.  Hex value of 0x8863.";
185           reference
186             "RFC 2516: A Method for Transmitting PPP Over Ethernet
187                        (PPPoE).";
188         }
189         enum pppoe-session {
190           value 34916;
191           description
192             "Point-to-Point Protocol over Ethernet.  Used during
193              session stage.  Hex value of 0x8864.";
194           reference
195             "RFC 2516: A Method for Transmitting PPP Over Ethernet
196                        (PPPoE).";
197         }
198         enum intel-ans {
199           value 34925;
200           description
201             "Intel Advanced Networking Services.  Hex value of
202              0x886D.";
203         }
204         enum jumbo-frames {
205           value 34928;
206           description
207             "Jumbo frames or Ethernet frames with more than
208              1500 bytes of payload, up to 9000 bytes.";
209         }
210         enum homeplug {
211           value 34939;
212           description
213             "Family name for the various power line
214              communications.  Hex value of 0x887B.";
215         }
216         enum eap {
217           value 34958;
218           description
219             "Ethernet Access Protocol (EAP) over LAN.  Hex value
220              of 0x888E.";
221           reference
222             "IEEE 802.1X.";
223         }
224         enum profinet {
225           value 34962;
226           description
227             "PROcess FIeld Net (PROFINET).  Hex value of 0x8892.";
228         }
229         enum hyperscsi {
230           value 34970;
231           description
232             "Small Computer System Interface (SCSI) over Ethernet.
233              Hex value of 0x889A.";
234         }
235         enum aoe {
236           value 34978;
237           description
238             "Advanced Technology Advancement (ATA) over Ethernet.
239              Hex value of 0x88A2.";
240         }
241         enum ethercat {
242           value 34980;
243           description
244             "Ethernet for Control Automation Technology (EtherCAT).
245              Hex value of 0x88A4.";
246         }
247         enum provider-bridging {
248           value 34984;
249           description
250             "Provider Bridging (802.1ad) and Shortest Path Bridging
251              (801.1aq).  Hex value of 0x88A8.";
252           reference
253             "IEEE 802.1ad and IEEE 802.1aq).";
254         }
255         enum ethernet-powerlink {
256           value 34987;
257           description
258             "Ethernet Powerlink.  Hex value of 0x88AB.";
259         }
260         enum goose {
261           value 35000;
262           description
263             "Generic Object Oriented Substation Event (GOOSE).
264              Hex value of 0x88B8.";
265           reference
266             "IEC/ISO 8802-2 and 8802-3.";
267         }
268         enum gse {
269           value 35001;
270           description
271             "Generic Substation Events.  Hex value of 88B9.";
272           reference
273             "IEC 61850.";
274         }
275         enum sv {
276           value 35002;
277           description
278             "Sampled Value Transmission.  Hex value of 0x88BA.";
279           reference
280             "IEC 61850.";
281         }
282         enum lldp {
283           value 35020;
284           description
285             "Link Layer Discovery Protocol (LLDP).  Hex value of
286              0x88CC.";
287           reference
288             "IEEE 802.1AB.";
289         }
290         enum sercos {
291           value 35021;
292           description
293             "Sercos Interface.  Hex value of 0x88CD.";
294         }
295         enum wsmp {
296           value 35036;
297           description
298             "WAVE Short Message Protocol (WSMP).  Hex value of
299              0x88DC.";
300         }
301         enum homeplug-av-mme {
302           value 35041;
303           description
304             "HomePlug AV Mobile Management Entity (MME).  Hex value
305              of 88E1.";
306         }
307         enum mrp {
308           value 35043;
309           description
310             "Media Redundancy Protocol (MRP).  Hex value of
311              0x88E3.";
312           reference
313             "IEC 62439-2.";
314         }
315         enum macsec {
316           value 35045;
317           description
318             "MAC Security.  Hex value of 0x88E5.";
319           reference
320             "IEEE 802.1AE.";
321         }
322         enum pbb {
323           value 35047;
324           description
325             "Provider Backbone Bridges (PBB).  Hex value of
326              0x88E7.";
327           reference
328             "IEEE 802.1ah.";
329         }
330         enum cfm {
331           value 35074;
332           description
333             "Connectivity Fault Management (CFM).  Hex value of
334              0x8902.";
335           reference
336             "IEEE 802.1ag.";
337         }
338         enum fcoe {
339           value 35078;
340           description
341             "Fiber Channel over Ethernet (FCoE).  Hex value of
342              0x8906.";
343           reference
344             "T11 FC-BB-5.";
345         }
346         enum fcoe-ip {
347           value 35092;
348           description
349             "FCoE Initialization Protocol.  Hex value of 0x8914.";
350         }
351         enum roce {
352           value 35093;
353           description
354             "RDMA over Converged Ethernet (RoCE).  Hex value of
355              0x8915.";
356         }
357         enum tte {
358           value 35101;
359           description
360             "TTEthernet Protocol Control Frame (TTE).  Hex value
361              of 0x891D.";
362           reference
363             "SAE AS6802.";
364         }
365         enum hsr {
366           value 35119;
367           description
368             "High-availability Seamless Redundancy (HSR).  Hex
369              value of 0x892F.";
370           reference
371             "IEC 62439-3:2016.";
372         }
373       }
374     }
375     description
376       "The uint16 type placeholder is defined to enable
377        users to manage their own ethertypes not
378        covered by the module.  Otherwise, the module contains
379        enum definitions for the more commonly used ethertypes.";
380   }
381 }