diff --git a/ntc_templates/templates/huawei_vrp_display_startup.textfsm b/ntc_templates/templates/huawei_vrp_display_startup.textfsm new file mode 100644 index 0000000000..51347be0f0 --- /dev/null +++ b/ntc_templates/templates/huawei_vrp_display_startup.textfsm @@ -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 diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 16b406d461..20b2a90744 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -470,6 +470,7 @@ huawei_vrp_display_lldp_neighbor.textfsm, .*, huawei_vrp, dis[[play]] lldp nei[[ huawei_vrp_display_temperature.textfsm, .*, huawei_vrp, dis[[play]] tem[[perature]] huawei_vrp_display_arp_brief.textfsm, .*, huawei_vrp, dis[[play]] arp br[[ief]] huawei_vrp_display_port_vlan.textfsm, .*, huawei_vrp, dis[[play]] port vl[[an]] +huawei_vrp_display_startup.textfsm, .*, huawei_vrp, dis[[play]] star[[tup]] huawei_vrp_display_version.textfsm, .*, huawei_vrp, dis[[play]] ver[[sion]] juniper_junos_show_chassis_cluster_interfaces.textfsm, .*, juniper_junos, sh[[ow]] ch[[assis]] c[[luster]] i[[nterface]] diff --git a/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.raw b/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.raw new file mode 100644 index 0000000000..c733a1ae7c --- /dev/null +++ b/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.raw @@ -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 diff --git a/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.yml b/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.yml new file mode 100644 index 0000000000..49d77eb13f --- /dev/null +++ b/tests/huawei_vrp/display_startup/huawei_vrp_display_startup.yml @@ -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"