From e334fb8997c6118c6c4272d3cc0b3bfe5e54a698 Mon Sep 17 00:00:00 2001 From: amb1s1 Date: Wed, 22 Aug 2018 16:38:15 -0400 Subject: [PATCH 1/4] Updated show inventory to catch space on the name field --- templates/cisco_asa_show_inventory.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cisco_asa_show_inventory.template b/templates/cisco_asa_show_inventory.template index a55c705d91..4f5bd1f0cb 100644 --- a/templates/cisco_asa_show_inventory.template +++ b/templates/cisco_asa_show_inventory.template @@ -1,4 +1,4 @@ -Value NAME (\S+) +Value NAME (.*) Value DESCR (.*) Value PID (\S+) Value VID (\S+) From 92a02e3179919cdd1e43a77a554fd1f1902392f6 Mon Sep 17 00:00:00 2001 From: amb1s1 Date: Wed, 22 Aug 2018 16:47:42 -0400 Subject: [PATCH 2/4] Added parsed input for asa5510 --- .../show_inventory/cisco_asa_show_inventory.parsed | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed index 6ce307bb9f..ce3d6321b6 100644 --- a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed +++ b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed @@ -5,3 +5,9 @@ parsed_sample: pid: "ASA5515" sn: "FTX1930101U" vid: "V03" + +- name: "power supply" + descr: "ASA/IPS 180W AC Power Supply" + pid: "ASA5510" + sn: "JMX1134L12A" + vid: "V03" From b074a5e935c4925b83659cb9ff2b8d211e142ec7 Mon Sep 17 00:00:00 2001 From: amb1s1 Date: Wed, 22 Aug 2018 16:49:01 -0400 Subject: [PATCH 3/4] Added raw input for asa5510 --- tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw index 4d18e66067..3dbe554970 100644 --- a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw +++ b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.raw @@ -1,2 +1,5 @@ Name: "Chassis", DESCR: "ASA 5515-X with SW, 6 GE Data, 1 GE Mgmt, AC" PID: ASA5515 , VID: V03 , SN: FTX1930101U + +Name: "power supply", DESCR: "ASA/IPS 180W AC Power Supply" +PID: ASA-180W-PWR-AC , VID: V01 , SN: DTN111381AC From b95a4da59ad361d9c4021be199b7daae6d3607a0 Mon Sep 17 00:00:00 2001 From: amb1s1 Date: Wed, 22 Aug 2018 16:50:10 -0400 Subject: [PATCH 4/4] Update parsed data from asa5510 --- .../show_inventory/cisco_asa_show_inventory.parsed | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed index ce3d6321b6..d1e57cb6c3 100644 --- a/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed +++ b/tests/cisco_asa/show_inventory/cisco_asa_show_inventory.parsed @@ -5,9 +5,9 @@ parsed_sample: pid: "ASA5515" sn: "FTX1930101U" vid: "V03" - + - name: "power supply" descr: "ASA/IPS 180W AC Power Supply" - pid: "ASA5510" - sn: "JMX1134L12A" - vid: "V03" + pid: "ASA-180W-PWR-AC" + sn: "DTN111381AC" + vid: "V01"