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

Update hp_comware_display_device_manuinfo.textfsm #1132

Merged
merged 6 commits into from
Dec 25, 2022
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Value Filldown CHASSIS_ID (\d+)
Value Required SLOT_TYPE (Slot|Subslot|Fan|Power|Chassis)
Value SLOT_ID (\d+|self)
Value DEVICE_NAME (\S+)
Value DEVICE_NAME (.+)
Value DEVICE_SERIAL_NUMBER (\S+)
Value MANUFACTURING_DATE (\S+)
Value VENDOR_NAME (\S+)
Expand All @@ -19,4 +19,4 @@ Start
^\s*MANUFACTURING_DATE\s*:\s*${MANUFACTURING_DATE}
^\s*VENDOR_NAME\s*:\s*${VENDOR_NAME} -> Record Start
^\s*$$
^. -> Error
^. -> Error
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

Slot 1 CPU 0:
DEVICE_NAME : SecPath F1000-AK115
DEVICE_SERIAL_NUMBER : 219801A1C39214Q00075
MAC_ADDRESS : 1451-7EB8-D4DE
MANUFACTURING_DATE : 2021-04-14
VENDOR_NAME : H3C
Power 0:
The operation is not supported on the specified power.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
parsed_sample:
- chassis_id: ""
slot_type: "Slot"
slot_id: "1"
device_name: "SecPath F1000-AK115"
device_serial_number: "219801A1C39214Q00075"
manufacturing_date: "2021-04-14"
vendor_name: "H3C"
mac_address: "1451-7EB8-D4DE"
- chassis_id: ""
slot_type: "Power"
slot_id: "0"
device_name: ""
device_serial_number: ""
manufacturing_date: ""
vendor_name: ""
mac_address: ""