Skip to content

Commit

Permalink
Fix Zyxel sys atsh template when there message before data (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ribot authored Oct 12, 2022
1 parent e3454fc commit 593294e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/zyxel_os_sys_atsh.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Value SERIAL_NUMBER (\S+)
Value MAC_ADDRESS ([0-9A-F]{12})

Start
^\d{4}-\d{2}-\d{2}.* -> Next
^Firmware\sVersion\s*:\s${VERSION}
^Bootbase\sVersion\s*:\s${BOOT_VERSION}
^Vendor\sName\s*:\s${VENDOR}
Expand Down
10 changes: 10 additions & 0 deletions tests/zyxel_os/sys_atsh/zyxel_os_sys_atsh_2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
2022-10-03 17:47:51 sys<25123>, zcfg_msg.c:235, _msg_recv(), WARNING: EID = 51, select() wait forever, EID = 1, type = 16 with reply, oid = 127956
Firmware Version : V5.30(ABSB.5)C0
Bootbase Version : V1.45 | 08/02/2021 17:45:45
Vendor Name : Zyxel Communications Corp.
Product Model : VMG1312-T20B
Serial Number : S220Y04043424
First MAC Address : 5C648E88D4E0
Last MAC Address : 5C648E88D4E7
MAC Address Quantity : 08
Default Country Code : E1
8 changes: 8 additions & 0 deletions tests/zyxel_os/sys_atsh/zyxel_os_sys_atsh_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
parsed_sample:
- version: "V5.30(ABSB.5)C0"
boot_version: "V1.45 | 08/02/2021 17:45:45"
vendor: "Zyxel Communications Corp."
hardware_model: "VMG1312-T20B"
serial_number: "S220Y04043424"
mac_address: "5C648E88D4E0"

0 comments on commit 593294e

Please sign in to comment.