Skip to content

Commit

Permalink
Zyxel fix sys atsh parsing (#1151)
Browse files Browse the repository at this point in the history
Co-authored-by: Edouard Lavaud <[email protected]>
  • Loading branch information
elavaud and Edouard Lavaud authored Dec 25, 2022
1 parent 69bec28 commit bb1cce6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntc_templates/templates/zyxel_os_sys_atsh.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Start
^Romfile\sChecksum\s*:.+
^Main\sFeature\sBits\s*:.+
^Other\sFeature\sBits\s*:.*
^[0-9a-f]{8}:\s[0-9a-f]{8}\s[0-9a-f]{8}\s[0-9a-f]{8}\s[0-9a-f]{8}
^[0-9a-f]{8}:\s[0-9a-f]{8}\s[0-9a-f]{8}\s[0-9a-f]{8}\s[0-9a-f]{4}
^[0-9a-f]{1,8}:\s[0-9a-f]{1,8}\s[0-9a-f]{1,8}\s[0-9a-f]{1,8}\s[0-9a-f]{1,8}
^[0-9a-f]{1,8}:\s[0-9a-f]{1,8}\s[0-9a-f]{1,8}\s[0-9a-f]{1,8}(\s[0-9a-f]{1,8})?
^. -> Error
17 changes: 17 additions & 0 deletions tests/zyxel_os/sys_atsh/zyxel_os_sys_atsh2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 : S220Y04042350
First MAC Address : 5C648E88B350
Last MAC Address : 5C648E88B357
MAC Address Quantity : 08
Default Country Code : E1
Boot Module Debug Flag : 00
Kernel Checksum : F3A8F377
RootFS Checksum : A096DA5D
Romfile Checksum : 00001C0D
Main Feature Bits : 00
Other Feature Bits :
7ffccb71: 04050508 00000100 00000000 00000000
7ffccb81: 00000000 00000000 00000000
8 changes: 8 additions & 0 deletions tests/zyxel_os/sys_atsh/zyxel_os_sys_atsh2.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: "S220Y04042350"
mac_address: "5C648E88B350"

0 comments on commit bb1cce6

Please sign in to comment.