blob: 9329dcde7d6a6569514ecee85f716abd8821dece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
module openconfig-if-ethernet-ext {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/interfaces/ethernet-ext";
prefix "oc-eth-ext";
// import some basic types
import openconfig-interfaces { prefix oc-if; }
import openconfig-if-ethernet { prefix oc-eth; }
import openconfig-yang-types { prefix oc-yang; }
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
www.openconfig.net";
description
"This module adds extensions to the base ethernet configuration
and operational state model to support additional use cases.";
oc-ext:openconfig-version "0.1.0";
revision "2018-07-10" {
description
"Initial version of Ethernet extensions module to add frame
size distribution stats";
reference "0.1.0";
}
grouping ethernet-in-frames-size-dist {
description
"Grouping for defining the size distribution of the frames
received";
container in-distribution {
description
"The size distribution of the received frames.";
leaf in-frames-64-octets {
type oc-yang:counter64;
description
"Number of packets (including bad packets) received that
were 64 bytes in length (excluding framing bits but
including FCS bytes).";
}
leaf in-frames-65-127-octets {
type oc-yang:counter64;
description
"Number of good and bad packets received that were
between 65 and 127 bytes in length (excluding framing bits
but including FCS bytes).";
}
leaf in-frames-128-255-octets {
type oc-yang:counter64;
description
"Number of good and bad packets received that were
between 128 and 255 bytes in length inclusive
(excluding framing bits but including FCS bytes).";
}
leaf in-frames-256-511-octets {
type oc-yang:counter64;
description
"Number of good and bad packets received that were
between 256 and 511 bytes in length inclusive
(excluding framing bits but including FCS bytes).";
}
leaf in-frames-512-1023-octets {
type oc-yang:counter64;
description
"Number of good and bad packets received that were
between 512 and 1023 bytes in length inclusive
(excluding framing bits but including FCS bytes).";
}
leaf in-frames-1024-1518-octets {
type oc-yang:counter64;
description
"Number of good and bad packets received that were
between 1024 and 1518 bytes in length inclusive
(excluding framing bits but including FCS bytes).";
}
}
}
// augment statements
augment "/oc-if:interfaces/oc-if:interface/oc-eth:ethernet/" +
"oc-eth:state/oc-eth:counters" {
description
"Adds size distribution to the ethernet counters";
uses ethernet-in-frames-size-dist;
}
}
|