Pick up byte-buddy from yangtools
[mdsal.git] / model / l2-types / src / main / yang / opendaylight-l2-types.yang
1 module opendaylight-l2-types {
2     namespace "urn:opendaylight:l2:types";
3     prefix "ethertype";
4
5     description
6         "Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
7
8          This program and the accompanying materials are made available under the
9          terms of the Eclipse Public License v1.0 which accompanies this distribution,
10          and is available at http://www.eclipse.org/legal/epl-v10.html";
11
12     revision "2013-08-27" {
13         description "Initial revision";
14     }
15
16     typedef vlan-pcp {
17         description
18             "IEEE 802.1p priority. It indicates the frame priority level.
19              Values are from 0 (best effort) to 7 (highest);
20              1 represents the lowest priority.";
21         type uint8 {
22             range "0..7";
23         }
24     }
25
26     typedef vlan-dei {
27         description
28             "Drop Eligible Indicator (DEI): a 1-bit field. (formerly CFI).
29              May be used separately or in conjunction with PCP to indicate frames
30              eligible to be dropped in the presence of congestion.";
31         type boolean;
32     }
33
34     typedef vlan-id {
35         type uint16 {
36             range "0..4095";
37         }
38     }
39
40     typedef ether-type {
41         type uint32;
42     }
43 }