blob: 5eb2ae56eb9b0a0305d82f9fae6117d1e0cb00ee (
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
|
<?xml version="1.0"?>
<interfaceDefinition>
<node name="show">
<children>
<node name="ip">
<children>
<node name="bgp">
<properties>
<help>Show Border Gateway Protocol (BGP) information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp"</command>
<children>
<leafNode name="attribute-info">
<properties>
<help>Show BGP attribute information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp attribute-info"</command>
</leafNode>
<leafNode name="cidr-only">
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp cidr-only"</command>
</leafNode>
<node name="community">
<properties>
<help>Show BGP routes matching the communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community"</command>
</node>
<tagNode name="community">
<properties>
<help>Display routes matching the specified communities</help>
<completionHelp>
<list><AA:NN> local-AS no-advertise no-export</list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community $5"</command>
</tagNode>
<leafNode name="community-info">
<properties>
<help>List all bgp community information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-info"</command>
</leafNode>
<tagNode name="community-list">
<properties>
<help>Show BGP routes matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-list $5"</command>
<children>
<leafNode name="exact-match">
<properties>
<help>Show BGP routes exactly matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp community-list $5 exact-match"</command>
</leafNode>
</children>
</tagNode>
<leafNode name="dampened-paths">
<properties>
<help>Show dampened BGP paths</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp dampening dampened-paths"</command>
</leafNode>
<tagNode name="filter-list">
<properties>
<help>Show BGP information for specified word</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
</tagNode>
<leafNode name="flap-statistics">
<properties>
<help>Show flap statistics of routes</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp dampening flap-statistics"</command>
</leafNode>
<node name="ipv4">
<properties>
<help>Show BGP IPv4 information</help>
</properties>
<children>
<node name="unicast">
<properties>
<help>Show BGP IPv4 unicast information</help>
</properties>
<children>
<leafNode name="cidr-only">
<properties>
<help>Display only routes with non-natural netmasks</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast cidr-only"</command>
</leafNode>
<node name="community"> <!-- START new code -->
<properties>
<help>Show BGP routes matching the communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community"</command>
</node>
<tagNode name="community">
<properties>
<help>Display routes matching the specified communities</help>
<completionHelp>
<list><AA:NN> local-AS no-advertise no-export</list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community $7"</command>
</tagNode>
<tagNode name="community-list">
<properties>
<help>Show BGP routes matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7"</command>
<children>
<leafNode name="exact-match">
<properties>
<help>Show BGP routes exactly matching specified community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast community-list $7 exact-match"</command>
</leafNode>
</children>
</tagNode>
<tagNode name="filter-list">
<properties>
<help>Show BGP information for specified word</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp filter-list $5"</command>
</tagNode>
<tagNode name="neighbors">
<properties>
<help>Show detailed BGP IPv4 unicast neighbor information</help>
<completionHelp>
<script>vtysh -c "show ip bgp ipv4 unicast summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbors $7"</command>
<children>
<leafNode name="advertised-routes">
<properties>
<help>Show routes advertised to a BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 advertised-routes"</command>
</leafNode>
<leafNode name="prefix-counts">
<properties>
<help>Show detailed prefix count information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 prefix-counts"</command>
</leafNode>
<leafNode name="received-routes">
<properties>
<help>Show the received routes from neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 received-routes"</command>
</leafNode>
<leafNode name="routes">
<properties>
<help>Show routes learned from neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast neighbor $7 routes"</command>
</leafNode>
</children>
</tagNode>
<leafNode name="paths">
<properties>
<help>Show BGP path information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast paths"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
<help>Show BGP routes matching the specified prefix list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast prefix-list $7"</command>
</tagNode>
<tagNode name="regexp">
<properties>
<help>Show BGP routes matching the specified AS path regular expression</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp ipv4 unicast regexp $5"</command>
</tagNode>
<tagNode name="route-map">
<properties>
<help>Show BGP routes matching the specified route map</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
</tagNode>
<leafNode name="summary">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp summary"</command>
</leafNode>
</children>
</node>
<tagNode name="unicast">
<properties>
<help>Show BGP information for specified IP address or prefix</help>
<completionHelp>
<list><x.x.x.x> <x.x.x.x/x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp $6"</command>
</tagNode>
</children>
</node>
<node name="large-community">
<properties>
<help>Show BGP routes matching the specified large-communities</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community"</command>
</node>
<leafNode name="large-community-info">
<properties>
<help>Show BGP large-community information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community-info"</command>
</leafNode>
<tagNode name="large-community-list">
<properties>
<help>Show BGP routes matching the specified large-community list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp large-community-list $5"</command>
</tagNode>
<leafNode name="memory">
<properties>
<help>Show BGP memory usage</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp memory"</command>
</leafNode>
<tagNode name="neighbors">
<properties>
<help>Show detailed BGP IPv4 unicast neighbor information</help>
<completionHelp>
<script>vtysh -c "show ip bgp summary" | awk '{print $1}' | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"</script>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbors $5"</command>
<children>
<leafNode name="advertised-routes">
<properties>
<help>Show routes advertised to a BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 advertised-routes"</command>
</leafNode>
<leafNode name="dampened-routes">
<properties>
<help>Show dampened routes received from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 dampened-routes"</command>
</leafNode>
<leafNode name="flap-statistics">
<properties>
<help>Show flap statistics of the routes learned from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 flap-statistics"</command>
</leafNode>
<leafNode name="prefix-counts">
<properties>
<help>Show detailed prefix count information for BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 prefix-counts"</command>
</leafNode>
<node name="received">
<properties>
<help>Show information received from BGP neighbor</help>
</properties>
<children>
<leafNode name="prefix-filter">
<properties>
<help>Show prefixlist filter</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 received prefix-filter"</command>
</leafNode>
</children>
</node>
<leafNode name="received-routes">
<properties>
<help>Show received routes from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 received-routes"</command>
</leafNode>
<leafNode name="routes">
<properties>
<help>Show routes learned from BGP neighbor</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp neighbor $5 routes"</command>
</leafNode>
</children>
</tagNode>
<leafNode name="paths">
<properties>
<help>Show BGP path information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp paths"</command>
</leafNode>
<tagNode name="prefix-list">
<properties>
<help>Show BGP routes matching the specified prefix list</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp prefix-list $5"</command>
</tagNode>
<tagNode name="regexp">
<properties>
<help>Show BGP routes matching the specified AS path regular expression</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp regexp $5"</command>
</tagNode>
<tagNode name="route-map">
<properties>
<help>Show BGP routes matching the specified route map</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp route-map $5"</command>
</tagNode>
<leafNode name="statistics">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp statistics"</command>
</leafNode>
<leafNode name="summary">
<properties>
<help>Show summary of BGP information</help>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp summary"</command>
</leafNode>
</children>
</node>
<tagNode name="bgp">
<properties>
<help>Show BGP information for specified IP address or prefix</help>
<completionHelp>
<list><x.x.x.x> <x.x.x.x/x></list>
</completionHelp>
</properties>
<command>/usr/bin/vtysh -c "show ip bgp $4"</command>
</tagNode>
</children>
</node>
</children>
</node>
</interfaceDefinition>
|