Skip to content

Commit

Permalink
New Template: ruckus_fastiron, show mac-address (networktocode#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuasarKid authored and cppmonkey committed Oct 25, 2023
1 parent 092b2f5 commit 1aa5fa8
Show file tree
Hide file tree
Showing 6 changed files with 2,464 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ paloalto_panos_show_jobs_all.textfsm, .*, paloalto_panos, sh[[ow]] jo[[bs]] all
paloalto_panos_show_arp_all.textfsm, .*, paloalto_panos, sh[[ow]] ar[[p]] all
paloalto_panos_show_mac_all.textfsm, .*, paloalto_panos, sh[[ow]] mac all

ruckus_fastiron_show_mac-address.textfsm, .*, ruckus_fastiron, sh[[ow]] mac[[-address]]
ruckus_fastiron_show_arp.textfsm, .*, ruckus_fastiron, sh[[ow]] ar[[p]]

ubiquiti_edgeswitch_show_version.textfsm, .*, ubiquiti_edgeswitch, sh[[ow]] ve[[rsion]]
Expand Down
12 changes: 12 additions & 0 deletions ntc_templates/templates/ruckus_fastiron_show_mac-address.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Value MAC_ADDRESS ([A-Fa-f0-9\.]{14})
Value PORT (\S+)
Value TYPE (\S+)
Value VLAN ([0-9]*)


Start
^Total\s+active\s+entries\s+from\s+all\s+ports\s+=\s+[0-9]*
^MAC-Address\s+Port\s+Type\s+VLAN
^${MAC_ADDRESS}\s+${PORT}\s+${TYPE}\s+${VLAN} -> Record
^\s*
^. -> Error
100 changes: 100 additions & 0 deletions tests/ruckus_fastiron/show_mac-address/show_mac-address.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@

Total active entries from all ports = 93
MAC-Address Port Type VLAN
70db.9895.73aa 1/2/1 Dynamic 3
0010.20d0.b22b 1/1/2 Dynamic 10
000f.7c0f.f387 2/1/11 Dynamic 3
54bf.646f.d304 1/1/6 Dynamic 1
000f.7c0f.f374 2/1/7 Dynamic 3
70db.9895.73aa 1/2/1 Dynamic 5
54bf.6479.a8de 1/1/22 Dynamic 2
000f.7c0f.f385 2/1/18 Dynamic 3
9890.96d9.f0ab 2/1/48 Dynamic 3
e454.e85d.bfe1 1/1/48 Dynamic 4
6c2b.59f8.ec1b 1/1/9 Dynamic 1
000f.7c0f.f322 2/1/27 Dynamic 3
0010.20ce.0655 1/1/2 Dynamic 10
000f.7c0f.f320 2/1/28 Dynamic 3
0010.20d1.1387 1/1/2 Dynamic 10
184b.0d22.d780 1/1/5 Dynamic 5
484d.7edb.1431 1/1/16 Dynamic 1
0010.20d2.8b0d 1/1/2 Dynamic 10
000f.7c0f.f324 2/1/30 Dynamic 3
184b.0d22.48c0 1/1/1 Dynamic 5
70db.9895.73ab 1/2/1 Dynamic 12
MAC-Address Port Type VLAN
0010.20d0.b23d 1/1/2 Dynamic 10
0010.20d2.8afd 1/1/2 Dynamic 10
184b.0d22.e2a0 1/1/2 Dynamic 5
54bf.64a2.66c5 1/1/23 Dynamic 2
6c2b.59ef.7457 1/1/27 Dynamic 1
000f.7c15.7df0 2/1/38 Dynamic 3
0010.20d0.b2a3 1/1/2 Dynamic 10
000f.7c0f.f373 2/1/9 Dynamic 3
000f.7c0f.f357 2/1/13 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 666
184b.0d22.4610 1/1/4 Dynamic 5
000f.7c0f.f328 2/1/21 Dynamic 3
0010.20cf.9f4d 1/1/2 Dynamic 10
e454.e85d.9381 1/1/47 Dynamic 4
000f.7c0f.f371 2/1/2 Dynamic 3
000f.7c0f.f355 2/1/15 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 1
0010.20d2.8b2b 1/1/2 Dynamic 10
6c2b.59e9.aa1c 1/1/20 Dynamic 2
000f.7c0f.f382 2/1/12 Dynamic 3
d89e.f344.6592 1/1/11 Dynamic 1
000f.7c0f.f377 2/1/10 Dynamic 3
MAC-Address Port Type VLAN
184b.0d22.d920 1/1/3 Dynamic 5
70db.9895.73aa 1/2/1 Dynamic 2
000f.7c0f.f380 2/1/23 Dynamic 3
000f.7c0f.f32c 2/1/31 Dynamic 3
000f.7c10.683f 2/1/35 Dynamic 3
000f.7c0f.f375 2/1/3 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 5
000f.7c0f.f386 2/1/14 Dynamic 3
6400.6a01.18a6 1/1/18 Dynamic 1
509a.4c4e.bb73 1/1/12 Dynamic 1
000f.7c0f.f323 2/1/25 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 7
000f.7c0f.f384 2/1/22 Dynamic 3
001a.ef5b.6804 1/1/4 Dynamic 10
000f.7c15.7e23 2/1/34 Dynamic 3
000f.7c15.7e07 2/1/37 Dynamic 3
54bf.6474.f6bb 1/1/10 Dynamic 1
d89e.f31b.48ea 1/1/17 Dynamic 1
0010.40b3.a1de 1/1/2 Dynamic 10
6c2b.59d6.b345 1/1/21 Dynamic 2
000f.7c0f.f327 2/1/24 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 11
MAC-Address Port Type VLAN
000f.7c0f.f325 2/1/29 Dynamic 3
000f.7c0f.f352 2/1/19 Dynamic 3
d89e.f344.64bc 1/1/46 Dynamic 4
f8bc.128f.04ee 1/1/14 Dynamic 1
000f.7c10.212e 2/1/32 Dynamic 3
6c2b.59d6.9fcd 1/1/19 Dynamic 2
6c2b.59dd.c6fa 1/1/8 Dynamic 1
fa98.6b8a.a8b9 1/1/4 Dynamic 11
d861.6240.f255 1/1/1 Dynamic 10
54bf.6496.c555 1/1/7 Dynamic 1
000f.7c0f.f372 2/1/4 Dynamic 3
000f.7c14.fa31 2/1/26 Dynamic 3
000f.7c0f.f356 2/1/33 Dynamic 3
000f.7c0f.f383 2/1/8 Dynamic 3
484d.7edb.1116 1/1/15 Dynamic 1
000f.7c0f.f370 2/1/6 Dynamic 3
000f.7c0f.f354 2/1/16 Dynamic 3
000f.7c0f.16df 2/1/1 Dynamic 3
70db.9895.73aa 1/2/1 Dynamic 1
000f.7c0f.f381 2/1/17 Dynamic 3
000f.7c0f.f32d 2/1/20 Dynamic 3
000f.7c0f.f376 2/1/5 Dynamic 3
MAC-Address Port Type VLAN
70db.9895.73aa 1/2/1 Dynamic 10
70db.9895.73aa 1/2/1 Dynamic 4
70db.9895.73ab 1/2/1 Dynamic 10
70db.9895.73ab 1/2/1 Dynamic 4
70db.9895.73ab 1/2/1 Dynamic 3
70db.9895.73ab 1/2/1 Dynamic 2
Loading

0 comments on commit 1aa5fa8

Please sign in to comment.