Skip to content
Draft
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
11 changes: 10 additions & 1 deletion ntc_templates/templates/arista_eos_show_inventory.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Value VID (\S+)

Start
^\s*System\s+\S+?$$ -> Chassis
^. -> Error

Chassis
^\s+Model
Expand All @@ -14,23 +15,31 @@ Chassis
^\s+${VID}\s+${SN}\s+\d+-\d+-\d+ -> Record
^\s+${PID}?\s+${DESCR}$$
^\s*System.+(power supply|power-supply) -> Power_Supply

^. -> Error

Power_Supply
^\s+Slot
^\s+-
^\s+${PORT}\s+${PID}\s+${SN} -> Record
^\s*System.+(fan) -> Fan
^. -> Error

Fan
^\s+Module
^\s+-
^\s+${PORT}?\s+\d+?\s+${PID}?\s+${SN} -> Record
^\s*System.+ports -> Ports
^. -> Error

Ports
^\s+${DESCR}\s+${PORT} -> Record
^\s*System.+transceiver -> Transceiver
^\s+Type\s+Count$$
^\s+---+
^. -> Error

Transceiver
^\s+${PORT}\s+${DESCR}\s+${PID}\s+${SN}\s+${VID} -> Record
^\s+Port\s+Manufacturer\s+Model\s+Serial\s+Number\s+Rev$$
^\s+---+
^. -> Error
Loading