-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathios.yaml
386 lines (385 loc) · 13.1 KB
/
ios.yaml
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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
- match: version (?P<version>\S+)
- match: hostname (?P<hostname>\S+)
- match: ip domain[ -]name (?P<domain>\S+)
- match: ip name-server (?P<name_server>\S+)
- match: username (\S+).*? password 7 (?P<password>\S+)
parent: username
actionall: decrypt7
- match: vrf definition (\S+)
parent: vrf
child:
- match: description (?P<description>.*)
- match: rd (?P<rd>\S+)
- match: address-family (\S+)
child:
- match: route-target export (?P<export>\S+)
- match: route-target import (?P<import>\S+)
- match: switch \d+ provision (?P<stack>\S+)
actionall: list
- match: call-home
name: call_home
child:
- match: http-proxy "(?P<http_proxy>.*?)" port (?P<proxy_port>\d+)
- match: profile "(.*?)"
parent: profile
child:
- match: (?:no )?active
name: active
action: bool
- match: destination transport-method (?P<transport>\S+)
- match: (?:no )?ip igmp snooping$
name: igmp_snoop
action: bool
- match: (?P<igmp_snoop>(?:no )?ip igmp snooping) vlan (\d+)$
parent: igmp_vlan
actionall: bool
- match: (?P<immediate_leave>(?:no )?ip igmp snooping) vlan (\d+) immediate-leave
parent: igmp_vlan
actionall: bool
- match: ip igmp snooping vlan (\d+) mrouter interface (?P<mrouter>\S+)
parent: igmp_vlan
- match: vtp mode (?P<vtp_mode>\S+)
- match: spanning-tree vlan (\S+) (\S+) (\d+)
parent: pvst
action: expand
key: 1
- match: vlan group (\S+) vlan-list (?P<vlan_list>\S+)
parent: vlan_group
actionall: expand
- match: vlan configuration (\S+)
parent: vlan_conf
action: expand
child:
search: (?:no )?ip igmp snooping
name: igmp_snoop
action: bool
- match: vlan ([0-9-,]+)
parent: vlan
action: expand
child:
match: name (?P<name>\S+)
- match: (?:no )?cdp run
name: cdp_run
action: bool
- match: (?:no )?lldp run
name: lldp_run
action: bool
- match: class-map match-(?P<match>\S+) (?!system-cpp)(\S+)
parent: class_map
child:
match: \s*(?P<lines>match vlan.*)
actionall: list
child:
match: \s*(?P<lines>match.*)
- match: policy-map (?!system-cpp)(\S+)
parent: policy_map
child:
match: class (\S+)
parent: class
child:
- match: (?:no )?active
name: active
- match: '\s*set (?:ip )?(\S+) (?P<marking>\S+)(?: table (?P<table_map>\S+))?'
parent: set
- match: queue-buffers ratio (?P<queue_ratio>\d+)
- match: '\s*police (?P<rate>\d+) (?P<rate_unit>\S+)(.*) (?P<rate_burst_size>\d+) (?P<rate_burst_size_unit>\S+) (?:conform-action (?P<conform_action>\S+) (?:exceed-action (?P<exceed_action>\S+)))(?P<rest>.*)'
parent: police
- match: interface (\S+)
parent: interface
child:
- match: description (?P<description>.*)
- match: (?:no )?switchport$
name: switchport
action: bool
- match: switchport access vlan (?P<vlans>\d+)
- match: switchport trunk native vlan (?P<native_vlan>\d+)
- match: switchport trunk allowed vlan (?!add)(\S+)
name: vlans
- match: switchport trunk allowed vlan add (\S+)
name: vlans
- match: switchport mode (?P<mode>\S+)
- match: switchport nonegotiate
name: dtp
value: false
- match: switchport voice vlan (?P<voice_vlan>\d+)
- match: switchport trunk encapsulation dot1q
name: encap
value: "ignore"
- match: mtu (?P<mtu>\d+)
- match: encapsulation dot1Q (?P<dot1q>\d+)
- match: (?:ip )?vrf forwarding (?P<vrf>\S+)
- match: ip address (?!.*secondary)(?P<ipv4>.*)
actionall: cidr
- match: ip address (?P<ipv4_secondary>.*) secondary
actionall: cidr
- match: no ip address
name: ipv4
value: false
- match: ip helper-address (\S+)
action: list
name: ipv4_helper
- match: (?:no )?ip redirects
name: ipv4_redirects
action: bool
- match: (?:no )?ip unreachables
name: ipv4_unreachables
action: bool
- match: ip directed-broadcast ?(?P<ipv4_dir_bcast>.*)
- match: (?:no )?ip proxy-arp
name: ipv4_proxy_arp
action: bool
- match: ip pim (?P<ip_pim>.*-mode)
- match: ip access-group (\S+) (in|out)
parent: ipv4_acl
key: 2
- match: standby version (?P<version>\d)
parent: standby
- match: standby (\d+) (ip|ipv6|priority) (\S+)
parent: standby
key: 1
- match: 'standby(?: (\d+))? (preempt)(?: delay minimum (?P<delay>\d+))?(?: reload (?P<reload>\d+))?'
parent: standby
- match: 'standby (\d+) (track) (\d+)(?: (\S+))?(?: (\d+))?'
parent: standby
key: 1
- match: standby (\d+) timers (?P<hello>\d+) (?P<dead>\d+)
parent: standby
- match: standby (\d+) authentication md5 key-string 7 (?P<auth_md5>\S+)
parent: standby
actionall: decrypt7
- match: ((?:no )?logging event) (\S+)
parent: logging
actionall: bool
key: 2
- match: carrier-delay (?P<carrier_delay>\d+)
- match: (?:no )?shutdown
name: shutdown
action: bool
- match: power inline (?P<power_inline>.*)
- match: speed (?P<speed>.*)
actionall: split
- match: duplex (?P<duplex>.*)
- match: ipv6 address (?P<ipv6>\S+)
- match: ipv6 nd (?P<ipv6_nd>.*)
- match: (?:no )?ipv6 redirects
name: ipv6_redirects
action: bool
- match: ipv6 traffic-filter (?P<ingress>\S+) in
parent: ipv6_acl
- match: ipv6 traffic-filter (?P<egress>\S+) out
parent: ipv6_acl
- match: (?:no )?authentication open
name: monitor_mode
action: bool
- match: (?:no )?snmp trap link-status
name: snmp_trap_link_change
action: bool
- match: dot1x pae (?P<dot1x_pae>\S+)
- match: cts manual
child:
match: policy static sgt (\d+)
name: sgt
- match: storm-control action (?P<action>\S+)
parent: storm_control
- match: storm-control (\S+) level (?:(?P<level>[\d\.]+) ?(?P<level_low>[\d\.]+)?|(?:pps (?P<pps>\S+) ?(?P<pps_low>\S+)?)|(?:bps (?P<bps>\S+) ?(?P<bps_low>\S+)?))
parent: storm_control
- match: (?:no )?cdp enable
name: cdp_enable
action: bool
- match: (?:no )?lldp transmit
parent: lldp
name: transmit
action: bool
- match: (?:no )?lldp receive
parent: lldp
name: receive
action: bool
- match: bfd interval (?P<interval>\d+) min_rx (?P<min_rx>\d+) multiplier (?P<multiplier>\d+)
parent: bfd
- match: (?:no )?bfd echo
parent: bfd
name: echo
action: bool
- match: channel-group (?P<id>\d+) mode (?P<mode>\S+)
parent: channel_group
- match: spanning-tree vlan (\S+) (\S+) (\d+)
parent: stp_vlan
key: 1
action: expand
- match: spanning-tree guard (.*)$
name: spanning_tree_guard
- match: spanning-tree portfast(?:(?!trunk).)*$
name: stp_portfast
value: enable
- match: spanning-tree portfast.*(?P<stp_portfast>trunk)
- match: spanning-tree bpdufilter (?P<stp_bpdufilter>.*)
- match: spanning-tree bpduguard (?P<stp_bpduguard>.*)
- match: lacp rate (?P<lacp_rate>\S+)
- match: service-policy input (?P<ingress>\S+)
parent: service_policy
- match: service-policy output (?P<egress>\S+)
parent: service_policy
- match: router bgp (?P<local_as>\d+)
name: bgp
child:
- match: bgp router-id (?P<router_id>\S+)
- match: neighbor (\S+) description (?P<description>.*)
parent: neighbor
- match: neighbor (\S+) remote-as (?P<remote_as>.*)
parent: neighbor
- match: neighbor (\S+) password 7 (?P<password>\S+)
parent: neighbor
actionall: decrypt7
- match: neighbor (\S+) fall-over bfd
parent: neighbor
name: bfd
action: bool
- match: neighbor (\S+) route-map (?P<route_map_in>\S+) in
parent: neighbor
- match: neighbor (\S+) route-map (?P<route_map_out>\S+) out
parent: neighbor
- match: neighbor (\S+) inherit peer-session (?P<peer_session>.*)
parent: neighbor
- match: template peer-session (\S+)
parent: peer_session
child:
- match: description (?P<description>.*)
- match: remote-as (?P<remote_as>.*)
- match: password 7 (?P<password>\S+)
actionall: decrypt7
- match: fall-over (?P<fall_over>bfd)
- match: address-family ipv4$
name: af_ipv4
child:
- match: redistribute (\S+)
name: redistribute
- match: default-information originate
name: default_originate
value: true
- match: address-family ipv4 vrf (\S+)
parent: af_ipv4_vrf
child:
- match: network (?P<network>.*)
- match: neighbor (\S+) description (?P<description>.*)
parent: neighbor
- match: neighbor (\S+) remote-as (?P<remote_as>.*)
parent: neighbor
- match: neighbor (\S+) password 7 (?P<password>\S+)
parent: neighbor
actionall: decrypt7
- match: neighbor (\S+) fall-over (?P<fall_over>bfd)
parent: neighbor
- match: neighbor (\S+) route-map (?P<route_map_in>\S+) in
parent: neighbor
- match: neighbor (\S+) route-map (?P<route_map_out>\S+) out
parent: neighbor
- match: neighbor (\S+) inherit peer-session (?P<peer_session>.*)
parent: neighbor
- match: redistribute (\S+)
name: redistribute
- match: default-information originate
name: default_originate
value: true
- match: address-family ipv6 vrf (\S+)
parent: af_ipv6_vrf
child:
- match: network (?P<network>.*)
- match: neighbor (\S+) description (?P<description>.*)
parent: neighbor
- match: neighbor (\S+) remote-as (?P<remote_as>.*)
parent: neighbor
- match: neighbor (\S+) password 7 (?P<password>\S+)
parent: neighbor
actionall: decrypt7
- match: neighbor (\S+) fall-over (?P<fall_over>bfd)
parent: neighbor
- match: neighbor (\S+) route-map (?P<route_map_in>\S+) in
parent: neighbor
- match: neighbor (\S+) route-map (?P<route_map_out>\S+) out
parent: neighbor
- match: neighbor (\S+) inherit peer-session (?P<peer_session>.*)
parent: neighbor
- match: redistribute (\S+)
name: redistribute
- match: default-information originate
name: default_originate
value: true
- match: 'ip route(?: vrf (?P<vrf>\S+))? (\S+ \S+)(?: (?=[A-V])(?P<interface>\S+))?(?: (?=(?:\S*[\.:])+)(?P<nexthop>\S+))?(?: (?P<distance>\d+))?(?: tag (?P<tag>\d+))?(?: name "?(?P<name>[^"]*)"?)?(?: track (?P<track>\S+))?'
parent: route
action: cidr
grouping: implicit
- match: 'ipv6 route(?: vrf (?P<vrf>\S+))? (\S+)(?: (?=[A-V])(?P<interface>\S+))?(?: (?=(?:\S*[\.:])+)(?P<nexthop>\S+))?(?: (?P<distance>\d+))?(?: tag (?P<tag>\d+))?(?: name "?(?P<name>[^"]*)"?)?(?: track (?P<track>\S+))?'
parent: route
grouping: implicit
- match: ip sla (\d+)
parent: ipsla
child:
match: '(\S+) (?P<dest_ip>\S+)(?: (?P<dest_port>\d+))?(?: source-ip (?P<source_ip>\S+))?(?: source-port (?P<source_port>\S+))?(?: num-packets (?P<num_packets>\d+))?(?: interval (?P<interval>\d+))?'
parent: type
child:
- match: tos (?P<tos>\d+)
- match: vrf (?P<vrf>\S+)
- match: owner (?P<owner>.*)
- match: tag (?P<tag>\S+)
- match: threshold (?P<threshold>\d+)
- match: timeout (?P<timeout>\d+)
- match: frequency (?P<frequency>\d+)
- match: 'ip sla schedule (\d+) (?:life (?P<life>forever|\d+))?(?: start-time (?P<start>(?:after |now|pending|random )?[:\d]*))?(?: ageout (?P<ageout>\d+))?'
parent: ipsla
- match: 'monitor session (\d+) source interface (?P<source>.*?)(?: (?P<direction>both|tx|rx)|$)'
parent: span
actionall: expand
- match: 'monitor session (\d+) destination interface (?P<dest>.*?)(?: encapsulation (?P<egress_encap>\S+))?(?: ingress (?P<ingress_encap>\S+ )?vlan (?P<ingress_vlan>\d+))?$'
parent: span
actionall: expand
- match: wireless profile policy (\S+)
parent: policy_profile
child:
- match: description "?(?P<description>[^"]*)"?
- match: vlan (?P<vlan>\S+)
- match: (?:no )?shutdown
name: shutdown
action: bool
- match: wireless tag policy (\S+)
parent: policy_tag
child:
- match: description "?(?P<description>[^"]*)"?
- match: wlan (\S+) policy (?P<policy_profile>\S+)
parent: wlan_profile
- match: wlan (\S+) (?P<wlan_id>\S+) (?P<ssid>\S+)
parent: wlan_profile
child:
- match: (?:no )?shutdown
name: shutdown
action: bool
- match: aaa (\S+) (\S+) (.*)
key: 1
value: 3
parent: aaa
#
#- match: aaa authorization (\S+) (.*)
#name: aaa_authorization
#grouping: explicit
#value: 2
# grouping: implicit
#- match: aaa authorization (\S+) (.*)$
# name: aaa_authorization
# parent: aaa
# key: 2
# grouping: implicit
#- match: aaa accounting (\S+) (.*)$
# name: aaa_accounting
# parent: aaa
# key: 2
# grouping: implicit
# (?P<subfacility>\S+) (.*)
#- match: (?P<immediate_leave>(?:no )?ip igmp snooping) vlan (\d+) immediate-leave
#parent: igmp_vlan
#aaa authentication login default group tacacs+ local
#aaa authentication enable default group tacacs+ enable
#aaa authorization exec default group tacacs+ local
#aaa authorization commands 1 default group tacacs+ local
#aaa authorization commands 15 default group tacacs+ local
#aaa authorization network default group tacacs+ local
#aaa accounting exec default start-stop group tacacs+
#aaa accounting network default start-stop group tacacs+