From 35839c6c081f3288f98ca406107b5da4be653a65 Mon Sep 17 00:00:00 2001 From: "yshu95@gmail.com" Date: Wed, 19 Aug 2020 11:29:24 +0900 Subject: [PATCH] update arista_eos_show_inventory --- templates/arista_eos_show_inventory.textfsm | 12 ++++++------ .../show_inventory/arista_eos_show_inventory.raw | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/arista_eos_show_inventory.textfsm b/templates/arista_eos_show_inventory.textfsm index e306ec7c4e..f288fa85f8 100644 --- a/templates/arista_eos_show_inventory.textfsm +++ b/templates/arista_eos_show_inventory.textfsm @@ -11,7 +11,7 @@ Chassis ^\s+Model ^\s+- ^\s+HW - ^\s+${VID}\s+${SN}\s+\d+-\d+-\d+$$ -> Record + ^\s+${VID}\s+${SN}\s+\d+-\d+-\d+ -> Record ^\s+${NAME}?\s+${DESCR}$$ ^\s*System.+(power supply|power-supply) -> Power_Supply @@ -19,18 +19,18 @@ Chassis Power_Supply ^\s+Slot ^\s+- - ^\s+${PORT}\s+${NAME}\s+${SN}$$ -> Record + ^\s+${PORT}\s+${NAME}\s+${SN} -> Record ^\s*System.+(fan) -> Fan - + Fan ^\s+Module ^\s+- - ^\s+${PORT}?\s+\d+?\s+${NAME}?\s+${SN}$$ -> Record + ^\s+${PORT}?\s+\d+?\s+${NAME}?\s+${SN} -> Record ^\s*System.+ports -> Ports Ports - ^\s+${DESCR}\s+${PORT}$$ -> Record + ^\s+${DESCR}\s+${PORT} -> Record ^\s*System.+transceiver -> Transceiver Transceiver - ^\s+${PORT}\s+${DESCR}\s+${NAME}\s+${SN}\s+${VID}$$ -> Record \ No newline at end of file + ^\s+${PORT}\s+${DESCR}\s+${NAME}\s+${SN}\s+${VID} -> Record diff --git a/tests/arista_eos/show_inventory/arista_eos_show_inventory.raw b/tests/arista_eos/show_inventory/arista_eos_show_inventory.raw index 04a377e266..a963b64b5f 100644 --- a/tests/arista_eos/show_inventory/arista_eos_show_inventory.raw +++ b/tests/arista_eos/show_inventory/arista_eos_show_inventory.raw @@ -24,4 +24,4 @@ System has 52 transceiver slots 1 Arista Networks SFP-10G-SR XCW1225FD753 0002 2 Arista Networks SFP-10G-SR XCW1225FD753 0002 51 Arista Networks SFP-10G-SR XCW1225FD753 0002 - 52 Arista Networks SFP-10G-SR XCW1225FD753 0002 \ No newline at end of file + 52 Arista Networks SFP-10G-SR XCW1225FD753 0002