Skip to content

Commit 42900c0

Browse files
caribouHYmjbear
andauthored
Add Fsas Si-R show system information template (#1956)
Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com>
1 parent 9e26cc0 commit 42900c0

9 files changed

Lines changed: 107 additions & 0 deletions
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Value VERSION (\d+\.\d+)
2+
Value SERIAL (\d+)
3+
Value SYSTEM (.+?)
4+
Value FIRMWARE (\S+)
5+
Value CONFIG_FILE (\S+)
6+
Value STARTUP_TIME (.+?)
7+
Value CURRENT_TIME (.+?)
8+
Value FIRMWARE1_VERSION (\d+\.\d+)
9+
Value FIRMWARE2_VERSION (\d+\.\d+)
10+
11+
Start
12+
^Current-time\s+:\s+${CURRENT_TIME}\s*$$
13+
^Startup-time\s+:\s+${STARTUP_TIME}\s*$$
14+
^System\s+:\s+${SYSTEM}\s*$$
15+
^Serial\s+No\.\s+:\s+${SERIAL}\s*$$
16+
^ROM\s+Ver\.\s+:\s+.+$$
17+
^Firm\s+Ver\.\s+:\s+V${VERSION}\s*.+$$
18+
^Running-firmware\s+:\s+${FIRMWARE}\s*$$
19+
^Firmware1\s+Ver\.\s+:\s+V${FIRMWARE1_VERSION}\s*.+$$
20+
^Firmware2\s+Ver\.\s+:\s+V${FIRMWARE2_VERSION}\s*.+$$
21+
^Security\s+Software\s+Ver\.\s+:\s+.+$$
22+
^Startup-config\s+:\s+\w+\s+\w+\s+\d+\s+[\d:]+\s+\d+\s+${CONFIG_FILE}\s*$$
23+
^Running-config\s+:\s+.+$$
24+
^MAC\s+:\s+.+$$
25+
^Memory\s+:\s+.+$$
26+
^USB\d?\s+:\s+.+$$
27+
^WWAN\d?\s+.+$$
28+
^\s*$$
29+
^. -> Error

ntc_templates/templates/index

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,8 @@ fortinet_execute_date.textfsm, .*, fortinet, exec[[ute]] da[[te]]
630630
fortinet_execute_ping.textfsm, .*, fortinet, exec[[ute]] ping
631631
fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]]
632632

633+
fsas_sir_show_system_information.textfsm, .*, fsas_sir, sh[[ow]] sys[[tem]] i[[nformation]]
634+
633635
hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]]
634636
hp_comware_display_lldp_neighbor-information_list.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] l[[ist]]
635637
hp_comware_display_ip_vpn-instance_instance-name.textfsm, .*, hp_comware, di[[splay]] ip vpn[[-instance]] in[[instance-name]]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Current-time : Mon Oct 7 06:23:59 2019
2+
Startup-time : Mon Oct 7 06:23:52 2019
3+
System : Si-R G211
4+
Serial No. : 00000001
5+
ROM Ver. : U-Boot 2018.03-00070-g16236ce4a6
6+
Firm Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019
7+
Running-firmware : firmware1
8+
Firmware1 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019
9+
Firmware2 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019
10+
Startup-config : Thu Oct 3 09:05:38 2019 config1
11+
Running-config : Fri Oct 4 06:23:52 2019
12+
MAC : xxxxxxxxxxxa-xxxxxxxxxxx0
13+
Memory : 320MB
14+
USB1 : ------
15+
USB2 : ------
16+
WWAN1 : ------
17+
WWAN1 Ver. : ------
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
parsed_sample:
3+
- config_file: "config1"
4+
current_time: "Mon Oct 7 06:23:59 2019"
5+
firmware: "firmware1"
6+
firmware1_version: "20.00"
7+
firmware2_version: "20.00"
8+
serial: "00000001"
9+
startup_time: "Mon Oct 7 06:23:52 2019"
10+
system: "Si-R G211"
11+
version: "20.00"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Current-time : Tue Dec 31 21:29:06 2024
2+
Startup-time : Tue Dec 31 11:29:03 2024
3+
System : Si-R G120
4+
Serial No. : 12130001
5+
ROM Ver. : U-Boot 2018.03-00086-g4bcc5bcade
6+
Firm Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023
7+
Running-firmware : firmware2
8+
Firmware1 Ver. : V20.14 NY0067 Thu Dec 16 18:14:38 JST 2021
9+
Firmware2 Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023
10+
Startup-config : Tue Dec 31 20:28:25 2024 config1
11+
Running-config : Tue Dec 31 20:27:35 2024
12+
MAC : 68847ebdabf7-68847ebdabff
13+
Memory : 320MB
14+
USB : ------
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
parsed_sample:
3+
- config_file: "config1"
4+
current_time: "Tue Dec 31 21:29:06 2024"
5+
firmware: "firmware2"
6+
firmware1_version: "20.14"
7+
firmware2_version: "20.54"
8+
serial: "12130001"
9+
startup_time: "Tue Dec 31 11:29:03 2024"
10+
system: "Si-R G120"
11+
version: "20.54"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Current-time : Thu Jan 1 00:00:08 1970
2+
Startup-time : Thu Jan 1 00:00:00 1970
3+
System : Si-R G110B
4+
Serial No. : 10000001
5+
ROM Ver. : 1.1
6+
Firm Ver. : V04.12 NY0040 Wed Aug 4 08:51:54 JST 2021
7+
Startup-config : Thu Jan 1 00:03:26 1970 config1
8+
Running-config : Thu Jan 1 00:00:00 1970
9+
MAC : 2cd44fffff58-2cd44fffff5e
10+
Memory : 256MB
11+
USB : ------
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
parsed_sample:
3+
- config_file: "config1"
4+
current_time: "Thu Jan 1 00:00:08 1970"
5+
firmware: ""
6+
firmware1_version: ""
7+
firmware2_version: ""
8+
serial: "10000001"
9+
startup_time: "Thu Jan 1 00:00:00 1970"
10+
system: "Si-R G110B"
11+
version: "04.12"

tests/test_index_order.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"extreme_slxos",
4646
"f5_ltm",
4747
"fortinet",
48+
"fsas_sir",
4849
"hp_comware",
4950
"hp_procurve",
5051
"huawei_smartax",

0 commit comments

Comments
 (0)