From cc6a198b9adb1b9313cfc80e01866a818a8054dd Mon Sep 17 00:00:00 2001 From: Anonymous Date: Thu, 30 Jul 2026 09:14:08 +0000 Subject: [PATCH 1/8] wip: save work on current template --- .../aruba_aoscx_show_system_inventory.textfsm | 14 ++++ ntc_templates/templates/index | 1 + .../aruba_aoscx_show_system_inventory.raw | 31 +++++++ .../aruba_aoscx_show_system_inventory.yml | 80 +++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm create mode 100644 tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw create mode 100644 tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm new file mode 100644 index 0000000000..2f3a9c2419 --- /dev/null +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -0,0 +1,14 @@ +Value TYPE (.+?) +Value LOCATION (\S+) +Value PRODUCT_NUMBER (\S+|--) +Value DESCRIPTION (.+?) +Value SERIAL (\S+|--) +Value HARDWARE_VERSION (\S+|--) + +Start + ^\s*$$ # blank line + ^[-\s]+$$ # dashed separator row + ^Type\s+Location\s+Product\s+Description\s+Serial\s+Hardware + ^\s*Number\s+Number\s+Version + ^\s*${TYPE}\s{2,}${LOCATION}\s{2,}${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s{1,}${HARDWARE_VERSION}\s*$$ -> Record + ^. -> Error "LINE NOT FOUND" diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index ff51e1e9ce..b0e18bfdd9 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -119,6 +119,7 @@ aruba_aoscx_show_bgp_all-vrfs_all_summary.textfsm, .*, aruba_aoscx, sh[[ow]] bgp aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]] dom d[[etail]] aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]] aruba_aoscx_show_mac-address-table.textfsm, .*, aruba_aoscx, sh[[ow]] ma[[c-address-table]] +aruba_aoscx_show_system_inventory.textfsm, .*, aruba_aoscx, sh[[ow]] sys[[tem]] inv[[entory]] aruba_aoscx_show_ntp_associations.textfsm, .*, aruba_aoscx, sh[[ow]] ntp as[[sociations]] aruba_aoscx_show_interface_mgmt.textfsm, .*, aruba_aoscx, sh[[ow]] int[[erface]] m[[gmt]] aruba_aoscx_show_arp_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ar[[p]] a[[ll-vrfs]] diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw new file mode 100644 index 0000000000..c1cda44f93 --- /dev/null +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw @@ -0,0 +1,31 @@ + +Type Location Product Description Serial Hardware + Number Number Version +-------------------- -------- ---------------- -------------------------------------------------- ---------------- ----------- +Chassis 1 JL635A Aruba 8325-48Y8C 48p 25G 8p 100G Swch ABCD1234EF 0 +Power Supply 1/1 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1235EF -- +Power Supply 1/2 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1236EF -- +Fan Tray-1/1 JL628A 8325 Fan Module -- -- +Fan Tray-1/1 JL628A 8325 Fan Module -- -- +Fan Tray-1/2 JL628A 8325 Fan Module -- -- +Fan Tray-1/2 JL628A 8325 Fan Module -- -- +Fan Tray-1/3 JL628A 8325 Fan Module -- -- +Fan Tray-1/3 JL628A 8325 Fan Module -- -- +Fan Tray-1/4 JL628A 8325 Fan Module -- -- +Fan Tray-1/4 JL628A 8325 Fan Module -- -- +Fan Tray-1/5 JL628A 8325 Fan Module -- -- +Fan Tray-1/5 JL628A 8325 Fan Module -- -- +Fan Tray-1/6 JL628A 8325 Fan Module -- -- +Fan Tray-1/6 JL628A 8325 Fan Module -- -- +Transceiver 1/1/1 J9151E 10G-LR / 10G SFP+ LR ABCD1237EF 1990-4694 +Transceiver 1/1/2 J9151E 10G-LR / 10G SFP+ LR ABCD1238EF 1990-4694 +Transceiver 1/1/8 J4859D 1G-LX / 1G SFP LX ABCD1239EF 1990-4802 +Transceiver 1/1/9 J4859D 1G-LX / 1G SFP LX ABCD1210EF 1990-4802 +Transceiver 1/1/10 J4858D 1G-SX / 1G SFP SX ABCD1211EF 1990-4750 +Transceiver 1/1/11 J4859D 1G-LX / 1G SFP LX ABCD1212EF 1990-4802 +Transceiver 1/1/12 J4858D 1G-SX / 1G SFP SX ABCD1213EF 1990-4750 +Transceiver 1/1/46 J4859D 1G-LX / 1G SFP LX ABCD1214EF 1990-4802 +Transceiver 1/1/47 J9151E 10G-LR / 10G SFP+ LR ABCD1215EF 1990-4694 +Transceiver 1/1/48 J9151E 10G-LR / 10G SFP+ LR ABCD1216EF 1990-4694 + + diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml new file mode 100644 index 0000000000..7eb3d782db --- /dev/null +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml @@ -0,0 +1,80 @@ +--- +parsed_sample: + - description: "Aruba 8325-48Y8C 48p 25G 8p 100G Swch" + hardware_version: "0" + location: "1" + product_number: "JL635A" + serial: "ABCD1234EF" + type: "Chassis" + - description: "Aruba 8325 650W 100-240VAC FB PSU" + hardware_version: "--" + location: "1/1" + product_number: "JL632A" + serial: "ABCD1235EF" + type: "Power Supply" + - description: "Aruba 8325 650W 100-240VAC FB PSU" + hardware_version: "--" + location: "1/2" + product_number: "JL632A" + serial: "ABCD1236EF" + type: "Power Supply" + - description: "10G-LR / 10G SFP+ LR" + hardware_version: "1990-4694" + location: "1/1/1" + product_number: "J9151E" + serial: "ABCD1237EF" + type: "Transceiver" + - description: "10G-LR / 10G SFP+ LR" + hardware_version: "1990-4694" + location: "1/1/2" + product_number: "J9151E" + serial: "ABCD1238EF" + type: "Transceiver" + - description: "1G-LX / 1G SFP LX" + hardware_version: "1990-4802" + location: "1/1/8" + product_number: "J4859D" + serial: "ABCD1239EF" + type: "Transceiver" + - description: "1G-LX / 1G SFP LX" + hardware_version: "1990-4802" + location: "1/1/9" + product_number: "J4859D" + serial: "ABCD1210EF" + type: "Transceiver" + - description: "1G-SX / 1G SFP SX" + hardware_version: "1990-4750" + location: "1/1/10" + product_number: "J4858D" + serial: "ABCD1211EF" + type: "Transceiver" + - description: "1G-LX / 1G SFP LX" + hardware_version: "1990-4802" + location: "1/1/11" + product_number: "J4859D" + serial: "ABCD1212EF" + type: "Transceiver" + - description: "1G-SX / 1G SFP SX" + hardware_version: "1990-4750" + location: "1/1/12" + product_number: "J4858D" + serial: "ABCD1213EF" + type: "Transceiver" + - description: "1G-LX / 1G SFP LX" + hardware_version: "1990-4802" + location: "1/1/46" + product_number: "J4859D" + serial: "ABCD1214EF" + type: "Transceiver" + - description: "10G-LR / 10G SFP+ LR" + hardware_version: "1990-4694" + location: "1/1/47" + product_number: "J9151E" + serial: "ABCD1215EF" + type: "Transceiver" + - description: "10G-LR / 10G SFP+ LR" + hardware_version: "1990-4694" + location: "1/1/48" + product_number: "J9151E" + serial: "ABCD1216EF" + type: "Transceiver" From a4a7a515e8ee6f27aa049f177123e54278d34a6b Mon Sep 17 00:00:00 2001 From: Anonymous Date: Thu, 30 Jul 2026 11:53:58 +0000 Subject: [PATCH 2/8] feat(aruba_aoscx): add aruba_aoscx_show_system_inventory template --- .../aruba_aoscx_show_system_inventory.textfsm | 18 ++-- .../aruba_aoscx_show_system_inventory.yml | 88 +++++++++++++++++-- 2 files changed, 89 insertions(+), 17 deletions(-) diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm index 2f3a9c2419..9d924e6e31 100644 --- a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -1,14 +1,14 @@ -Value TYPE (.+?) +Value TYPE (\S+) Value LOCATION (\S+) -Value PRODUCT_NUMBER (\S+|--) +Value PRODUCT_NUMBER (\S+) Value DESCRIPTION (.+?) -Value SERIAL (\S+|--) -Value HARDWARE_VERSION (\S+|--) +Value SERIAL (\S+) +Value HARDWARE_VERSION (\S+) Start - ^\s*$$ # blank line - ^[-\s]+$$ # dashed separator row - ^Type\s+Location\s+Product\s+Description\s+Serial\s+Hardware - ^\s*Number\s+Number\s+Version - ^\s*${TYPE}\s{2,}${LOCATION}\s{2,}${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s{1,}${HARDWARE_VERSION}\s*$$ -> Record + ^\s*$$ + ^Type\s+Location -> Next + ^\s*Number -> Next + ^\s*[- \s]+\s*$$ -> Next + ^\s*${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record ^. -> Error "LINE NOT FOUND" diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml index 7eb3d782db..204ea86e9b 100644 --- a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml @@ -6,18 +6,90 @@ parsed_sample: product_number: "JL635A" serial: "ABCD1234EF" type: "Chassis" - - description: "Aruba 8325 650W 100-240VAC FB PSU" + - description: "JL632A Aruba 8325 650W 100-240VAC FB PSU" hardware_version: "--" - location: "1/1" - product_number: "JL632A" + location: "Supply" + product_number: "1/1" serial: "ABCD1235EF" - type: "Power Supply" - - description: "Aruba 8325 650W 100-240VAC FB PSU" + type: "Power" + - description: "JL632A Aruba 8325 650W 100-240VAC FB PSU" hardware_version: "--" - location: "1/2" - product_number: "JL632A" + location: "Supply" + product_number: "1/2" serial: "ABCD1236EF" - type: "Power Supply" + type: "Power" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/1" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/1" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/2" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/2" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/3" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/3" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/4" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/4" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/5" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/5" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/6" + product_number: "JL628A" + serial: "--" + type: "Fan" + - description: "8325 Fan Module" + hardware_version: "--" + location: "Tray-1/6" + product_number: "JL628A" + serial: "--" + type: "Fan" - description: "10G-LR / 10G SFP+ LR" hardware_version: "1990-4694" location: "1/1/1" From e2b0b61df8429911d0cf66d1fcae3e39046e1328 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Thu, 30 Jul 2026 12:15:36 +0000 Subject: [PATCH 3/8] feat(aruba_aoscx): fix index --- ntc_templates/templates/index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index b0e18bfdd9..d170dbbd84 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -119,8 +119,8 @@ aruba_aoscx_show_bgp_all-vrfs_all_summary.textfsm, .*, aruba_aoscx, sh[[ow]] bgp aruba_aoscx_show_interface_dom_detail.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]] dom d[[etail]] aruba_aoscx_show_ip_route_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ip r[[oute]] a[[ll-vrfs]] aruba_aoscx_show_mac-address-table.textfsm, .*, aruba_aoscx, sh[[ow]] ma[[c-address-table]] -aruba_aoscx_show_system_inventory.textfsm, .*, aruba_aoscx, sh[[ow]] sys[[tem]] inv[[entory]] aruba_aoscx_show_ntp_associations.textfsm, .*, aruba_aoscx, sh[[ow]] ntp as[[sociations]] +aruba_aoscx_show_system_inventory.textfsm, .*, aruba_aoscx, sh[[ow]] sys[[tem]] inv[[entory]] aruba_aoscx_show_interface_mgmt.textfsm, .*, aruba_aoscx, sh[[ow]] int[[erface]] m[[gmt]] aruba_aoscx_show_arp_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] ar[[p]] a[[ll-vrfs]] aruba_aoscx_show_bfd_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] bf[[d]] a[[ll-vrfs]] From e6efd256b79d4f90c6d006c504dcd7e87a9b91d0 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Thu, 30 Jul 2026 18:59:01 -0400 Subject: [PATCH 4/8] Remove unneeded (default) Next action Next is the default action https://github.com/google/textfsm/wiki/TextFSM#line-actions --- .../templates/aruba_aoscx_show_system_inventory.textfsm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm index 9d924e6e31..102cee4aff 100644 --- a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -7,8 +7,8 @@ Value HARDWARE_VERSION (\S+) Start ^\s*$$ - ^Type\s+Location -> Next - ^\s*Number -> Next - ^\s*[- \s]+\s*$$ -> Next + ^Type\s+Location + ^\s*Number + ^\s*[- \s]+\s*$$ ^\s*${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record ^. -> Error "LINE NOT FOUND" From 297bc5d33e8986d07aa0def2823ab7d7c25ed596 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:00:41 -0400 Subject: [PATCH 5/8] Modify leading whitespace and separator regex * There is leading whitespace before Number, so make it one or more * Modify table separator line regex to simplify --- .../templates/aruba_aoscx_show_system_inventory.textfsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm index 102cee4aff..65de75d84e 100644 --- a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -8,7 +8,7 @@ Value HARDWARE_VERSION (\S+) Start ^\s*$$ ^Type\s+Location - ^\s*Number - ^\s*[- \s]+\s*$$ + ^\s+Number + ^---+ ^\s*${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record ^. -> Error "LINE NOT FOUND" From fa6837855494ef622834ef84c7430f229597f5a2 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:33:12 -0400 Subject: [PATCH 6/8] Support two word part types * Remove regex space at beginning of line (not present in data) * Fix two word part types (ex: Power Supply) --- .../aruba_aoscx_show_system_inventory.textfsm | 5 +++-- .../aruba_aoscx_show_system_inventory.yml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm index 65de75d84e..2352aad54d 100644 --- a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -1,4 +1,5 @@ -Value TYPE (\S+) +Value TYPE (\w+\s?\w+) +#Value LOCATION (\S*\d+(/\d+)*) Value LOCATION (\S+) Value PRODUCT_NUMBER (\S+) Value DESCRIPTION (.+?) @@ -10,5 +11,5 @@ Start ^Type\s+Location ^\s+Number ^---+ - ^\s*${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record + ^${TYPE}\s+${LOCATION}\s+${PRODUCT_NUMBER}\s+${DESCRIPTION}\s+${SERIAL}\s+${HARDWARE_VERSION}\s*$$ -> Record ^. -> Error "LINE NOT FOUND" diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml index 204ea86e9b..c716290a3d 100644 --- a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml @@ -6,18 +6,18 @@ parsed_sample: product_number: "JL635A" serial: "ABCD1234EF" type: "Chassis" - - description: "JL632A Aruba 8325 650W 100-240VAC FB PSU" + - description: "Aruba 8325 650W 100-240VAC FB PSU" hardware_version: "--" - location: "Supply" - product_number: "1/1" + location: "1/1" + product_number: "JL632A" serial: "ABCD1235EF" - type: "Power" - - description: "JL632A Aruba 8325 650W 100-240VAC FB PSU" + type: "Power Supply" + - description: "Aruba 8325 650W 100-240VAC FB PSU" hardware_version: "--" - location: "Supply" - product_number: "1/2" + location: "1/2" + product_number: "JL632A" serial: "ABCD1236EF" - type: "Power" + type: "Power Supply" - description: "8325 Fan Module" hardware_version: "--" location: "Tray-1/1" From 99feb7687213ff19b7d465bc6c8f171902384418 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:38:38 -0400 Subject: [PATCH 7/8] Reduce test data duplication --- .../aruba_aoscx_show_system_inventory.raw | 15 ---- .../aruba_aoscx_show_system_inventory.yml | 90 ------------------- 2 files changed, 105 deletions(-) diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw index c1cda44f93..6bb3278b62 100644 --- a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.raw @@ -6,26 +6,11 @@ Chassis 1 JL635A Aruba 8325-48Y8C 48p 25G 8p 100G Power Supply 1/1 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1235EF -- Power Supply 1/2 JL632A Aruba 8325 650W 100-240VAC FB PSU ABCD1236EF -- Fan Tray-1/1 JL628A 8325 Fan Module -- -- -Fan Tray-1/1 JL628A 8325 Fan Module -- -- -Fan Tray-1/2 JL628A 8325 Fan Module -- -- -Fan Tray-1/2 JL628A 8325 Fan Module -- -- -Fan Tray-1/3 JL628A 8325 Fan Module -- -- -Fan Tray-1/3 JL628A 8325 Fan Module -- -- -Fan Tray-1/4 JL628A 8325 Fan Module -- -- -Fan Tray-1/4 JL628A 8325 Fan Module -- -- -Fan Tray-1/5 JL628A 8325 Fan Module -- -- -Fan Tray-1/5 JL628A 8325 Fan Module -- -- -Fan Tray-1/6 JL628A 8325 Fan Module -- -- Fan Tray-1/6 JL628A 8325 Fan Module -- -- Transceiver 1/1/1 J9151E 10G-LR / 10G SFP+ LR ABCD1237EF 1990-4694 -Transceiver 1/1/2 J9151E 10G-LR / 10G SFP+ LR ABCD1238EF 1990-4694 Transceiver 1/1/8 J4859D 1G-LX / 1G SFP LX ABCD1239EF 1990-4802 -Transceiver 1/1/9 J4859D 1G-LX / 1G SFP LX ABCD1210EF 1990-4802 -Transceiver 1/1/10 J4858D 1G-SX / 1G SFP SX ABCD1211EF 1990-4750 -Transceiver 1/1/11 J4859D 1G-LX / 1G SFP LX ABCD1212EF 1990-4802 Transceiver 1/1/12 J4858D 1G-SX / 1G SFP SX ABCD1213EF 1990-4750 Transceiver 1/1/46 J4859D 1G-LX / 1G SFP LX ABCD1214EF 1990-4802 -Transceiver 1/1/47 J9151E 10G-LR / 10G SFP+ LR ABCD1215EF 1990-4694 Transceiver 1/1/48 J9151E 10G-LR / 10G SFP+ LR ABCD1216EF 1990-4694 diff --git a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml index c716290a3d..a3006c2823 100644 --- a/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml +++ b/tests/aruba_aoscx/show_system_inventory/aruba_aoscx_show_system_inventory.yml @@ -24,66 +24,6 @@ parsed_sample: product_number: "JL628A" serial: "--" type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/1" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/2" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/2" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/3" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/3" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/4" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/4" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/5" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/5" - product_number: "JL628A" - serial: "--" - type: "Fan" - - description: "8325 Fan Module" - hardware_version: "--" - location: "Tray-1/6" - product_number: "JL628A" - serial: "--" - type: "Fan" - description: "8325 Fan Module" hardware_version: "--" location: "Tray-1/6" @@ -96,36 +36,12 @@ parsed_sample: product_number: "J9151E" serial: "ABCD1237EF" type: "Transceiver" - - description: "10G-LR / 10G SFP+ LR" - hardware_version: "1990-4694" - location: "1/1/2" - product_number: "J9151E" - serial: "ABCD1238EF" - type: "Transceiver" - description: "1G-LX / 1G SFP LX" hardware_version: "1990-4802" location: "1/1/8" product_number: "J4859D" serial: "ABCD1239EF" type: "Transceiver" - - description: "1G-LX / 1G SFP LX" - hardware_version: "1990-4802" - location: "1/1/9" - product_number: "J4859D" - serial: "ABCD1210EF" - type: "Transceiver" - - description: "1G-SX / 1G SFP SX" - hardware_version: "1990-4750" - location: "1/1/10" - product_number: "J4858D" - serial: "ABCD1211EF" - type: "Transceiver" - - description: "1G-LX / 1G SFP LX" - hardware_version: "1990-4802" - location: "1/1/11" - product_number: "J4859D" - serial: "ABCD1212EF" - type: "Transceiver" - description: "1G-SX / 1G SFP SX" hardware_version: "1990-4750" location: "1/1/12" @@ -138,12 +54,6 @@ parsed_sample: product_number: "J4859D" serial: "ABCD1214EF" type: "Transceiver" - - description: "10G-LR / 10G SFP+ LR" - hardware_version: "1990-4694" - location: "1/1/47" - product_number: "J9151E" - serial: "ABCD1215EF" - type: "Transceiver" - description: "10G-LR / 10G SFP+ LR" hardware_version: "1990-4694" location: "1/1/48" From ea8dd478bd503ea5b97e7ed7429cd5296996d47c Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Thu, 30 Jul 2026 19:46:19 -0400 Subject: [PATCH 8/8] Remove commented location line --- .../templates/aruba_aoscx_show_system_inventory.textfsm | 1 - 1 file changed, 1 deletion(-) diff --git a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm index 2352aad54d..3a732bdb75 100644 --- a/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_system_inventory.textfsm @@ -1,5 +1,4 @@ Value TYPE (\w+\s?\w+) -#Value LOCATION (\S*\d+(/\d+)*) Value LOCATION (\S+) Value PRODUCT_NUMBER (\S+) Value DESCRIPTION (.+?)