Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Template: ruckus_fastiron, show version #894

Merged
merged 10 commits into from
Mar 17, 2021
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ 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_version.textfsm, .*, ruckus_fastiron, sh[[ow]] v[[ersion]]
ruckus_fastiron_show_arp.textfsm, .*, ruckus_fastiron, sh[[ow]] ar[[p]]

ubiquiti_edgeswitch_show_version.textfsm, .*, ubiquiti_edgeswitch, sh[[ow]] ve[[rsion]]
Expand Down
29 changes: 29 additions & 0 deletions ntc_templates/templates/ruckus_fastiron_show_version.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Value List VERSION (\S+)
Value List BOOTCODE (\S+\s+\S+)
Value HARDWARE (.*)
Value List SERIAL (\S+)
Value List UPTIME (.*)


Start
^\s+Copyright\s+\(c\)\s+Ruckus\s+Networks,\s+Inc\.\s+All\s+rights\s+reserved\.
^\s+UNIT\s+[0-9]*:\s+compiled\s+on\s+\S+\s+[0-9]*\s+[0-9]*\s+at\s+[0-9]*:[0-9]*:[0-9]*\s+labeled\s+as\s+\S+
^\s+\([0-9]*\s+bytes\)\s+from\s+Primary\s+\S+\s+\(UFI\)
^\s+SW:\s+Version\s+${VERSION}
^\s+Compressed\s+Primary\s+Boot\s+Code\s+size\s+=\s+[0-9]*,\s+Version:${BOOTCODE}
^\s+Compiled\s+on\s+\S+\s+\S+\s+[0-9]*\s+[0-9]*:[0-9]*:[0-9]*\s+[0-9]*
^\s+HW:\s+${HARDWARE}\s*$$
^UNIT\s+[0-9]*:\s+SL\s+[0-9]*:\s+.*
^\s+Serial\s+#:${SERIAL}
^\s+Software\s+Package:\S+
QuasarKid marked this conversation as resolved.
Show resolved Hide resolved
^\s+Current\s+License:\S+
^\s+P-ASIC\s+[0-9]*:\s+.*
^\s+[0-9]* [KMGT](Hz|B)\s+.*
^STACKID\s+[0-9]*\s+system\s+uptime\s+is\s+${UPTIME}\s*$$
^The\s+system\s+started\s+at\s+.*
^The\s+system\s+:\s+started=.*
^My\s+stack\s+unit\s+ID\s+=\s+[0-9]*,\s+bootup\s+role\s+=\s+\S+ -> Record
^=+
^\s*$$
QuasarKid marked this conversation as resolved.
Show resolved Hide resolved
^\s*$$
^. -> Error
43 changes: 43 additions & 0 deletions tests/ruckus_fastiron/show_version/show_version.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Copyright (c) Ruckus Networks, Inc. All rights reserved.
UNIT 1: compiled on Feb 19 2019 at 13:48:49 labeled as SPS08090
(28575972 bytes) from Primary SPS08090.bin (UFI)
SW: Version 08.0.90T211
Compressed Primary Boot Code size = 786944, Version:10.1.15T225 (mnz10115)
Compiled on Thu Jan 31 01:08:55 2019
UNIT 2: compiled on Feb 19 2019 at 13:48:49 labeled as SPS08090
(28575972 bytes) from Primary SPS08090.bin (UFI)
SW: Version 08.0.90T211
Compressed Primary Boot Code size = 786944, Version:10.1.15T225 (mnz10115)

HW: Stackable ICX7150-48-POEF
==========================================================================
UNIT 1: SL 1: ICX7150-48PF-2X10G_2X1G POE 48-port Management Module
Serial #:FEE3816Q018
Software Package: BASE_SOFT_PACKAGE
Current License: 2X10G
P-ASIC 0: type B160, rev 11 Chip BCM56160_B0
==========================================================================
UNIT 1: SL 2: ICX7150-2X1GC 2-port 2G Module
==========================================================================
UNIT 1: SL 3: ICX7150-4X10GF 4-port 40G Module
==========================================================================
UNIT 2: SL 1: ICX7150-48PF-2X10G_2X1G POE 48-port Management Module
Serial #:FEE3816Q017
Software Package: BASE_SOFT_PACKAGE
Current License: 2X10G
==========================================================================
UNIT 2: SL 2: ICX7150-2X1GC 2-port 2G Module
==========================================================================
UNIT 2: SL 3: ICX7150-4X10GF 4-port 40G Module
==========================================================================
1000 MHz ARM processor ARMv7 88 MHz bus
8192 KB boot flash memory
2048 MB code flash memory
1024 MB DRAM
STACKID 1 system uptime is 24 day(s) 4 hour(s) 11 minute(s) 1 second(s)
STACKID 2 system uptime is 24 day(s) 4 hour(s) 11 minute(s) 1 second(s)
The system started at 18:28:15 Central Fri Dec 31 1999

The system : started=cold start
My stack unit ID = 1, bootup role = active

15 changes: 15 additions & 0 deletions tests/ruckus_fastiron/show_version/show_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
parsed_sample:
- version:
- "08.0.90T211"
- "08.0.90T211"
bootcode:
- "10.1.15T225 (mnz10115)"
- "10.1.15T225 (mnz10115)"
hardware: "Stackable ICX7150-48-POEF"
serial:
- "FEE3816Q018"
- "FEE3816Q017"
uptime:
- "24 day(s) 4 hour(s) 11 minute(s) 1 second(s)"
- "24 day(s) 4 hour(s) 11 minute(s) 1 second(s)"