forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Huawei VRP display startup template (networktocode#1211)
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
ntc_templates/templates/huawei_vrp_display_startup.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,27 @@ | ||
Value STARTUP_SYSTEM_SOFTWARE (.+) | ||
Value NEXT_STARTUP_SYSTEM_SOFTWARE (.+) | ||
Value BACKUP_SYSTEM_SOFTWARE_FOR_NEXT_STARTUP (.+) | ||
Value STARTUP_SAVED_CONFIGURATION_FILE (.+) | ||
Value NEXT_STARTUP_SAVED_CONFIGURATION_FILE (.+) | ||
Value STARTUP_LICENSE_FILE (.+) | ||
Value NEXT_STARTUP_LICENSE_FILE (.+) | ||
Value STARTUP_PATCH_PACKAGE (.+) | ||
Value NEXT_STARTUP_PATCH_PACKAGE (.+) | ||
Value STARTUP_VOICE_FILES (.+) | ||
Value NEXT_STARTUP_VOICE_FILES (.+) | ||
|
||
Start | ||
^\S+.*:\s*$$ -> Continue.Record | ||
^\S+.*:\s*$$ | ||
^\s+Startup\ssystem\ssoftware:\s+${STARTUP_SYSTEM_SOFTWARE}\s*$$\s*$$ | ||
^\s+Next\sstartup\s+system\s+software:\s+${NEXT_STARTUP_SYSTEM_SOFTWARE}\s*$$ | ||
^\s+Backup\s+system\s+software\s+for\s+next\sstartup:\s+${BACKUP_SYSTEM_SOFTWARE_FOR_NEXT_STARTUP}\s*$$ | ||
^\s+Startup\s+saved-configuration\s+file:\s+${STARTUP_SAVED_CONFIGURATION_FILE}\s*$$ | ||
^\s+Next\sstartup\s+saved-configuration\s+file:\s+${NEXT_STARTUP_SAVED_CONFIGURATION_FILE}\s*$$ | ||
^\s+Startup\s+license\s+file:\s+${STARTUP_LICENSE_FILE}\s*$$ | ||
^\s+Next\sstartup\s+license\s+file:\s+${NEXT_STARTUP_LICENSE_FILE}\s*$$ | ||
^\s+Startup\s+patch\s+package:\s+${STARTUP_PATCH_PACKAGE}\s*$$ | ||
^\s+Next\sstartup\s+patch\s+package:\s+${NEXT_STARTUP_PATCH_PACKAGE}\s*$$ | ||
^\s+Startup\s+voice-files:\s+${STARTUP_VOICE_FILES}\s*$$ | ||
^\s+Next\sstartup\s+voice-files:\s+${NEXT_STARTUP_VOICE_FILES}\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
12 changes: 12 additions & 0 deletions
12
tests/huawei_vrp/display_startup/huawei_vrp_display_startup.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,12 @@ | ||
MainBoard: | ||
Startup system software: flash:/AR610-V300R021C00SPC200.cc | ||
Next startup system software: flash:/AR610-V300R021C00SPC200.cc | ||
Backup system software for next startup: null | ||
Startup saved-configuration file: flash:/vrpcfg.zip | ||
Next startup saved-configuration file: flash:/vrpcfg2.zip | ||
Startup license file: null | ||
Next startup license file: null | ||
Startup patch package: flash:/AR610_V300R021SPH180.pat | ||
Next startup patch package: flash:/AR610_V300R021SPH180.pat | ||
Startup voice-files: null | ||
Next startup voice-files: null |
13 changes: 13 additions & 0 deletions
13
tests/huawei_vrp/display_startup/huawei_vrp_display_startup.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,13 @@ | ||
--- | ||
parsed_sample: | ||
- startup_system_software: "flash:/AR610-V300R021C00SPC200.cc" | ||
next_startup_system_software: "flash:/AR610-V300R021C00SPC200.cc" | ||
backup_system_software_for_next_startup: "null" | ||
startup_saved_configuration_file: "flash:/vrpcfg.zip" | ||
next_startup_saved_configuration_file: "flash:/vrpcfg2.zip" | ||
startup_license_file: "null" | ||
next_startup_license_file: "null" | ||
startup_patch_package: "flash:/AR610_V300R021SPH180.pat" | ||
next_startup_patch_package: "flash:/AR610_V300R021SPH180.pat" | ||
startup_voice_files: "null" | ||
next_startup_voice_files: "null" |