Skip to content
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

Enhancement: cisco_asa_show_inventory support inventory items w/o SN #638

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/cisco_asa_show_inventory.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Value SN (\S+)
Start
^Name:\s+"${NAME}"\s*,\s+DESCR:\s+"${DESCR}"
^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN:\s+${SN} -> Record
^PID:\s+${PID}\s*,\s+VID:\s+${VID}\s*,\s+SN: -> Record
^\s*$$
^show_inventory_all\s+\S+ -> NoRecord
^.+ -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name: "Chassis", DESCR: "ASA 5506-X with FirePOWER services, 8GE, AC, DES"
PID: ASA5506 , VID: V01 , SN: JMX8318372GB

Name: "Storage Device 1", DESCR: "ASA 5506-X SSD"
PID: ASA5506-SSD , VID: N/A , SN:
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
parsed_sample:
- name: "Chassis"
descr: "ASA 5506-X with FirePOWER services, 8GE, AC, DES"
pid: "ASA5506"
sn: "JMX8318372GB"
vid: "V01"
- name: "Storage Device 1"
descr: "ASA 5506-X SSD"
pid: "ASA5506-SSD"
sn: ""
vid: "N/A"