blob: 4b4362add6d22f7bbf725f483fd16d897a700415 (
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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="clear">
<properties>
<help>Clear system information</help>
</properties>
<children>
<node name="interfaces">
<properties>
<help>Clear interface information</help>
</properties>
<children>
<node name="counters">
<properties>
<help>Clear interface counters</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters</command>
<children>
<tagNode name="bonding">
<properties>
<help>Clear counters for a given bonding interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type bonding</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear bonding interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type bonding</command>
</standalone>
</tagNode>
<tagNode name="bridge">
<properties>
<help>Clear counters for a given bridge interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type bridge</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear bridge interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type bridge</command>
</standalone>
</tagNode>
<tagNode name="dummy">
<properties>
<help>Clear counters for a given dummy interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type dummy</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear dummy interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type dummy</command>
</standalone>
</tagNode>
<tagNode name="ethernet">
<properties>
<help>Clear counters for a given ethernet interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type ethernet</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear ethernet interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type ethernet</command>
</standalone>
</tagNode>
<tagNode name="geneve">
<properties>
<help>Clear counters for a given GENEVE interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type geneve</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear GENEVE interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type geneve</command>
</standalone>
</tagNode>
<tagNode name="input">
<properties>
<help>Clear counters for a given Input interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type input</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear input interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type input</command>
</standalone>
</tagNode>
<tagNode name="l2tpv3">
<properties>
<help>Clear counters for a given L2TPv3 interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type l2tpeth</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear L2TPv3 interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type l2tpeth</command>
</standalone>
</tagNode>
<!-- There's only one loopback in Linux and it's unlikely to change,
so we don't need a tag node here. -->
<node name="loopback">
<properties>
<help>Clear loopback interface counters</help>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name lo</command>
</node>
<tagNode name="macsec">
<properties>
<help>Clear counters for a given MACsec interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type macsec</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear MACsec interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type macsec</command>
</standalone>
</tagNode>
<tagNode name="openvpn">
<properties>
<help>Clear counters for a given OpenVPN interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type openvpn</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear OpenVPN interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type openvpn</command>
</standalone>
</tagNode>
<tagNode name="pppoe">
<properties>
<help>Clear counters for a given PPPoE interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type pppoe</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear PPPoE interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type pppoe</command>
</standalone>
</tagNode>
<tagNode name="pseudo-ethernet">
<properties>
<help>Clear counters for a given pseudo-ethernet interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type pseudo-ethernet</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear pseudo-ethernet interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type pseudo-ethernet</command>
</standalone>
</tagNode>
<tagNode name="sstp">
<properties>
<help>Clear counters for a given SSTP interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type sstp</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear SSTP interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type sstp</command>
</standalone>
</tagNode>
<tagNode name="tunnel">
<properties>
<help>Clear counters for a given tunnel interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type tunnel</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear tunnel interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type tunnel</command>
</standalone>
</tagNode>
<tagNode name="virtual-ethernet">
<properties>
<help>Clear counters for a given virtual-ethernet interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type virtual-ethernet</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear virtual-ethernet interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type virtual-ethernet</command>
</standalone>
</tagNode>
<tagNode name="vti">
<properties>
<help>Clear counters for a given VTI interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type vti</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear VTI interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type vti</command>
</standalone>
</tagNode>
<tagNode name="vxlan">
<properties>
<help>Clear counters for a given VXLAN interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type vxlan</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear VXLAN interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type vxlan</command>
</standalone>
</tagNode>
<tagNode name="wireguard">
<properties>
<help>Clear counters for a given WireGuard interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type wireguard</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear WireGuard interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wireguard</command>
</standalone>
</tagNode>
<tagNode name="wireless">
<properties>
<help>Clear counters for a given wireless interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type wireless</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear wireless interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wireless</command>
</standalone>
</tagNode>
<tagNode name="wwan">
<properties>
<help>Clear counters for a given WWAN interface</help>
<completionHelp>
<script>${vyos_completion_dir}/list_interfaces --type wwan</script>
</completionHelp>
</properties>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-name "$5"</command>
<standalone>
<help>Clear wireless wide area network interface counters</help>
<command>${vyos_op_scripts_dir}/interfaces.py clear_counters --intf-type wwan</command>
</standalone>
</tagNode>
</children>
</node>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|