-
Notifications
You must be signed in to change notification settings - Fork 741
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
Add Fsas Si-R show system information template #1956
Merged
jmcgill298
merged 9 commits into
networktocode:master
from
caribouHY:fsas_sir_show_system_information
Jan 8, 2025
+107
−0
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cdee0f1
add Fsas Si-R show system information template
caribouHY 8288b56
Update ntc_templates/templates/fsas_sir_show_system_information.textfsm
caribouHY afccab0
Update ntc_templates/templates/fsas_sir_show_system_information.textfsm
caribouHY 151675c
Update ntc_templates/templates/fsas_sir_show_system_information.textfsm
caribouHY 106a773
fix simpler regex
caribouHY fb26b25
add test case supported WWAN and muliti USB ports
caribouHY b662613
Update ntc_templates/templates/fsas_sir_show_system_information.textfsm
caribouHY c628f4d
Update ntc_templates/templates/fsas_sir_show_system_information.textfsm
caribouHY 65b2c8d
Update tests/fsas_sir/show_system_information/fasa_sir_show_system_in…
caribouHY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
ntc_templates/templates/fsas_sir_show_system_information.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Value VERSION (\d+\.\d+) | ||
Value SERIAL (\d+) | ||
Value SYSTEM (.+?) | ||
Value FIRMWARE (\S+) | ||
Value CONFIG_FILE (\S+) | ||
Value STARTUP_TIME (.+?) | ||
Value CURRENT_TIME (.+?) | ||
Value FIRMWARE1_VERSION (\d+\.\d+) | ||
Value FIRMWARE2_VERSION (\d+\.\d+) | ||
|
||
Start | ||
^Current-time\s+:\s+${CURRENT_TIME}\s*$$ | ||
^Startup-time\s+:\s+${STARTUP_TIME}\s*$$ | ||
^System\s+:\s+${SYSTEM}\s*$$ | ||
^Serial\s+No\.\s+:\s+${SERIAL}\s*$$ | ||
^ROM\s+Ver\.\s+:\s+.+$$ | ||
^Firm\s+Ver\.\s+:\s+V${VERSION}\s*.+$$ | ||
^Running-firmware\s+:\s+${FIRMWARE}\s*$$ | ||
^Firmware1\s+Ver\.\s+:\s+V${FIRMWARE1_VERSION}\s*.+$$ | ||
^Firmware2\s+Ver\.\s+:\s+V${FIRMWARE2_VERSION}\s*.+$$ | ||
^Security\s+Software\s+Ver\.\s+:\s+.+$$ | ||
^Startup-config\s+:\s+\w+\s+\w+\s+\d+\s+[\d:]+\s+\d+\s+${CONFIG_FILE}\s*$$ | ||
^Running-config\s+:\s+.+$$ | ||
^MAC\s+:\s+.+$$ | ||
^Memory\s+:\s+.+$$ | ||
^USB\d?\s+:\s+.+$$ | ||
^WWAN\d?\s+.+$$ | ||
^\s*$$ | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
tests/fsas_sir/show_system_information/fasa_sir_show_system_information3.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Current-time : Mon Oct 7 06:23:59 2019 | ||
Startup-time : Mon Oct 7 06:23:52 2019 | ||
System : Si-R G211 | ||
Serial No. : 00000001 | ||
ROM Ver. : U-Boot 2018.03-00070-g16236ce4a6 | ||
Firm Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Running-firmware : firmware1 | ||
Firmware1 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Firmware2 Ver. : V20.00 NY0001 Sun Sep 1 10:11:05 JST 2019 | ||
Startup-config : Thu Oct 3 09:05:38 2019 config1 | ||
Running-config : Fri Oct 4 06:23:52 2019 | ||
MAC : xxxxxxxxxxxa-xxxxxxxxxxx0 | ||
Memory : 320MB | ||
USB1 : ------ | ||
USB2 : ------ | ||
WWAN1 : ------ | ||
WWAN1 Ver. : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fasa_sir_show_system_information3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Mon Oct 7 06:23:59 2019" | ||
firmware: "firmware1" | ||
firmware1_version: "20.00" | ||
firmware2_version: "20.00" | ||
serial: "00000001" | ||
startup_time: "Mon Oct 7 06:23:52 2019" | ||
system: "Si-R G211" | ||
version: "20.00" |
14 changes: 14 additions & 0 deletions
14
tests/fsas_sir/show_system_information/fsas_sir_show_system_information.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Current-time : Tue Dec 31 21:29:06 2024 | ||
Startup-time : Tue Dec 31 11:29:03 2024 | ||
System : Si-R G120 | ||
Serial No. : 12130001 | ||
ROM Ver. : U-Boot 2018.03-00086-g4bcc5bcade | ||
Firm Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023 | ||
Running-firmware : firmware2 | ||
Firmware1 Ver. : V20.14 NY0067 Thu Dec 16 18:14:38 JST 2021 | ||
Firmware2 Ver. : V20.54 NY0115 Wed Nov 15 12:38:13 JST 2023 | ||
Startup-config : Tue Dec 31 20:28:25 2024 config1 | ||
Running-config : Tue Dec 31 20:27:35 2024 | ||
MAC : 68847ebdabf7-68847ebdabff | ||
Memory : 320MB | ||
USB : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Tue Dec 31 21:29:06 2024" | ||
firmware: "firmware2" | ||
firmware1_version: "20.14" | ||
firmware2_version: "20.54" | ||
serial: "12130001" | ||
startup_time: "Tue Dec 31 11:29:03 2024" | ||
system: "Si-R G120" | ||
version: "20.54" |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information2.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Current-time : Thu Jan 1 00:00:08 1970 | ||
Startup-time : Thu Jan 1 00:00:00 1970 | ||
System : Si-R G110B | ||
Serial No. : 10000001 | ||
ROM Ver. : 1.1 | ||
Firm Ver. : V04.12 NY0040 Wed Aug 4 08:51:54 JST 2021 | ||
Startup-config : Thu Jan 1 00:03:26 1970 config1 | ||
Running-config : Thu Jan 1 00:00:00 1970 | ||
MAC : 2cd44fffff58-2cd44fffff5e | ||
Memory : 256MB | ||
USB : ------ |
11 changes: 11 additions & 0 deletions
11
tests/fsas_sir/show_system_information/fsas_sir_show_system_information2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
parsed_sample: | ||
- config_file: "config1" | ||
current_time: "Thu Jan 1 00:00:08 1970" | ||
firmware: "" | ||
firmware1_version: "" | ||
firmware2_version: "" | ||
serial: "10000001" | ||
startup_time: "Thu Jan 1 00:00:00 1970" | ||
system: "Si-R G110B" | ||
version: "04.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"extreme_slxos", | ||
"f5_ltm", | ||
"fortinet", | ||
"fsas_sir", | ||
"hp_comware", | ||
"hp_procurve", | ||
"huawei_smartax", | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@caribouHY
Do you have test output that covers
USB
(andWWAN
) followed by a number?The question and goal is to have good test coverage. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test case from command reference. I don't hava a device supported Wireless WAN and multiple USB ports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood.
I'd say that's reasonable. Thank you.