-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-packet-trace.yang
151 lines (113 loc) · 2.58 KB
/
netgate-packet-trace.yang
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
module netgate-packet-trace {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-packet-trace";
prefix "ngpt";
import netgate-cli-extensions {
prefix "ngcliext";
}
import netgate-common {
prefix "ngcom";
}
import netgate-packet-fields {
prefix "ngpf";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"This YANG module provides a Netgate-defined data-model
for tracing packets using Classifier filters.
Copyright 2020 Rubicon Communications, LLC.";
revision 2024-06-01 {
description
"TNSR Release 24.06.";
}
revision 2022-02-15 {
description
"TNSR Release 22.02.";
}
revision 2021-02-15 {
description
"TNSR Release 21.02.";
}
revision 2021-02-01 {
description
"TNSR Release 21.02.";
}
container packet-trace-config {
description
"Configuration for packet tracing filters.";
container filters {
description
"Table of filters that select traced packets.";
list filter {
key name;
description
"An unordered list of named filters.";
ngcliext:node-fmt "trace match @{name}$n";
ngcliext:pre-children-op "push";
leaf name {
type ngcom:identifier-31;
description
"The trace filter's name.";
}
leaf description {
type ngcom:description-63;
description
"The brief description of the trace filter.";
ngcliext:node-fmt "^$% @@$n";
}
container match {
description
"Trace filter match values.";
container l2 {
description
"L2 fields\n";
container ethernet {
description
"L2 ethernet fields";
ngcliext:node-fmt "^$%$n";
ngcliext:pre-children-op "push";
uses ngpf:l2-ethernet;
}
}
container l3 {
description
"L3 fields";
container ipv4 {
description
"L3 IPv4 fields";
ngcliext:node-fmt "^ip4$n";
ngcliext:pre-children-op "push";
uses ngpf:l3-ip4;
}
container ipv6 {
description
"L3 IPv6 fields";
ngcliext:node-fmt "^ip6$n";
ngcliext:pre-children-op "push";
uses ngpf:l3-ip6;
}
}
container l4 {
description
"L4 fields";
container udp {
description
"L4 UDP fields";
ngcliext:node-fmt "^udp$n";
ngcliext:pre-children-op "push";
uses ngpf:l4-udp;
}
container tcp {
description
"L4 TCP fields";
ngcliext:node-fmt "^$%$n";
ngcliext:pre-children-op "push";
uses ngpf:l4-tcp;
}
}
}
}
}
}
}