From 2a48e002de8aae053dbf63e7379362de6a9b7908 Mon Sep 17 00:00:00 2001 From: julmanglano Date: Fri, 8 May 2026 13:05:21 +0200 Subject: [PATCH] aruba_aoscx_show_interface: capture Filtered counters and tolerate L3/VRF/subinterface output --- .../aruba_aoscx_show_interface.textfsm | 6 + .../show_interface/show_interface.yml | 34 ++++ .../show_interface/show_interface1.yml | 4 + .../show_interface/show_interface2.yml | 12 ++ .../show_interface/show_interface3.yml | 12 ++ .../show_interface/show_interface4.yml | 14 ++ .../show_interface/show_interface5.raw | 177 ++++++++++++++++++ .../show_interface/show_interface5.yml | 170 +++++++++++++++++ .../show_interface/show_interface6.raw | 31 +++ .../show_interface/show_interface6.yml | 86 +++++++++ 10 files changed, 546 insertions(+) create mode 100644 tests/aruba_aoscx/show_interface/show_interface5.raw create mode 100644 tests/aruba_aoscx/show_interface/show_interface5.yml create mode 100644 tests/aruba_aoscx/show_interface/show_interface6.raw create mode 100644 tests/aruba_aoscx/show_interface/show_interface6.yml diff --git a/ntc_templates/templates/aruba_aoscx_show_interface.textfsm b/ntc_templates/templates/aruba_aoscx_show_interface.textfsm index 5a0004435e..1be71ad92b 100644 --- a/ntc_templates/templates/aruba_aoscx_show_interface.textfsm +++ b/ntc_templates/templates/aruba_aoscx_show_interface.textfsm @@ -28,6 +28,7 @@ Value RX_MCAST_PACKETS (\d+) Value RX_BROADCAST_PACKETS (\d+) Value RX_ERRORS (\d+) Value RX_DROPPED (\d+) +Value RX_FILTERED (\d+) Value RX_CRC_FCS (\d+) Value TX_TOTAL_PACKETS (\d+) Value TX_TOTAL_BYTES (\d+) @@ -36,6 +37,7 @@ Value TX_MCAST_PACKETS (\d+) Value TX_BROADCAST_PACKETS (\d+) Value TX_ERRORS (\d+) Value TX_DROPPED (\d+) +Value TX_FILTERED (\d+) Value TX_CRC_FCS (\S+) Value TX_COLLISION (\d+) @@ -79,6 +81,7 @@ Start ^\s*Aggregated-interfaces\s*:\s+(?:\S+\s+){7}${AGGREGATED_INTERFACES}\s* -> Continue ^\s*Aggregated-interfaces\s*: ^\s*Aggregation-key + ^\s*Subinterface\s+count ^\s*Aggregate\s+mode ^\s*Persona ^\s*rate-limit\s+unknown-unicast @@ -92,6 +95,8 @@ Start ^\s*Rx -> Rx ^\s*Rate\s+RX\s+TX\s+Total -> Rate ^\s*Statistic\s+RX\s+TX\s+Total -> Statistic + ^\s*active-gateway\s + ^\s*VRF\s+name\s+is\s+\S+ ^. -> Error Rx @@ -137,6 +142,7 @@ Statistic ^\s*Jumbos ^\s*Pause\s+Frames ^\s*Dropped\s+${RX_DROPPED}\s+${TX_DROPPED}\s+\d+ + ^\s*Filtered\s+${RX_FILTERED}\s+${TX_FILTERED}\s+\d+ ^\s*Errors\s+${RX_ERRORS}\s+${TX_ERRORS}\s+\d+ ^\s+CRC/FCS\s+${RX_CRC_FCS}\s+${TX_CRC_FCS}\s+\d+ ^\s+Collision\s+\S+\s+${TX_COLLISION}\s+\d+ diff --git a/tests/aruba_aoscx/show_interface/show_interface.yml b/tests/aruba_aoscx/show_interface/show_interface.yml index e725f777aa..fd178a7492 100644 --- a/tests/aruba_aoscx/show_interface/show_interface.yml +++ b/tests/aruba_aoscx/show_interface/show_interface.yml @@ -21,6 +21,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "1831055" rx_total_bytes: "457274611" rx_total_packets: "2417650" @@ -32,6 +33,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "14" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "116722496" tx_total_bytes: "8432615310" tx_total_packets: "116722501" @@ -61,6 +63,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -72,6 +75,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "14" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -101,6 +105,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -112,6 +117,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -141,6 +147,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -152,6 +159,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -181,6 +189,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -192,6 +201,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -221,6 +231,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -232,6 +243,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -261,6 +273,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -272,6 +285,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -301,6 +315,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -312,6 +327,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -341,6 +357,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -352,6 +369,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -381,6 +399,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -392,6 +411,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -421,6 +441,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -432,6 +453,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -461,6 +483,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -472,6 +495,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -501,6 +525,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -512,6 +537,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -541,6 +567,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -552,6 +579,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -581,6 +609,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -592,6 +621,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -621,6 +651,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -632,6 +663,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -661,6 +693,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -672,6 +705,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" diff --git a/tests/aruba_aoscx/show_interface/show_interface1.yml b/tests/aruba_aoscx/show_interface/show_interface1.yml index 8ff9fceec6..996ee8f8d3 100644 --- a/tests/aruba_aoscx/show_interface/show_interface1.yml +++ b/tests/aruba_aoscx/show_interface/show_interface1.yml @@ -21,6 +21,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "9074606512" rx_total_packets: "24612099" @@ -32,6 +33,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "12741453" tx_total_bytes: "10743380379" tx_total_packets: "39673355" @@ -62,6 +64,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "8566811" rx_total_bytes: "32713606499" rx_total_packets: "68597611" @@ -73,6 +76,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "130470677" tx_total_bytes: "53876121819" tx_total_packets: "209496767" diff --git a/tests/aruba_aoscx/show_interface/show_interface2.yml b/tests/aruba_aoscx/show_interface/show_interface2.yml index 84f9e13235..51c3624168 100644 --- a/tests/aruba_aoscx/show_interface/show_interface2.yml +++ b/tests/aruba_aoscx/show_interface/show_interface2.yml @@ -21,6 +21,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "229165" rx_total_bytes: "4202228838" rx_total_packets: "18874893" @@ -32,6 +33,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "10466742" tx_total_bytes: "8657633387" tx_total_packets: "34277015" @@ -61,6 +63,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "50094726" rx_total_bytes: "34152848118" rx_total_packets: "103446835" @@ -72,6 +75,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "4" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "826188" tx_total_bytes: "137605609767" tx_total_packets: "401143191" @@ -101,6 +105,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "183849339" rx_total_bytes: "1236265418235" rx_total_packets: "1436539051" @@ -112,6 +117,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "13" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "1139712" tx_total_bytes: "53527759879" tx_total_packets: "180190047" @@ -141,6 +147,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -152,6 +159,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" @@ -181,6 +189,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -192,6 +201,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" @@ -223,6 +233,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "233944065" rx_total_bytes: "1270418266353" rx_total_packets: "1539985886" @@ -234,6 +245,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "17" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "1965900" tx_total_bytes: "191133369646" tx_total_packets: "581333238" diff --git a/tests/aruba_aoscx/show_interface/show_interface3.yml b/tests/aruba_aoscx/show_interface/show_interface3.yml index 080a3cb449..14c50cec2e 100644 --- a/tests/aruba_aoscx/show_interface/show_interface3.yml +++ b/tests/aruba_aoscx/show_interface/show_interface3.yml @@ -21,6 +21,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -32,6 +33,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -62,6 +64,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "3499" rx_total_bytes: "2493391" rx_total_packets: "8570" @@ -73,6 +76,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "216766" tx_total_bytes: "18807994" tx_total_packets: "248752" @@ -102,6 +106,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -113,6 +118,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -142,6 +148,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "1571243" rx_total_bytes: "368205439" rx_total_packets: "2902654" @@ -153,6 +160,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "1820" tx_total_bytes: "7670737" tx_total_packets: "20240" @@ -183,6 +191,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -194,6 +203,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -223,6 +233,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -234,6 +245,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" diff --git a/tests/aruba_aoscx/show_interface/show_interface4.yml b/tests/aruba_aoscx/show_interface/show_interface4.yml index cd362dc2c4..a481a410d8 100644 --- a/tests/aruba_aoscx/show_interface/show_interface4.yml +++ b/tests/aruba_aoscx/show_interface/show_interface4.yml @@ -21,6 +21,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "66461683072" rx_total_packets: "55863297" @@ -32,6 +33,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "1781" tx_total_bytes: "12145426823" tx_total_packets: "25381339" @@ -61,6 +63,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -72,6 +75,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -101,6 +105,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -113,6 +118,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -142,6 +148,7 @@ parsed_sample: rx_crc_fcs: "0" rx_dropped: "0" rx_errors: "0" + rx_filtered: "" rx_mcast_packets: "0" rx_total_bytes: "0" rx_total_packets: "0" @@ -155,6 +162,7 @@ parsed_sample: tx_crc_fcs: "n/a" tx_dropped: "0" tx_errors: "0" + tx_filtered: "" tx_mcast_packets: "0" tx_total_bytes: "0" tx_total_packets: "0" @@ -184,6 +192,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -196,6 +205,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" @@ -225,6 +235,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -236,6 +247,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" @@ -265,6 +277,7 @@ parsed_sample: rx_crc_fcs: "" rx_dropped: "" rx_errors: "" + rx_filtered: "" rx_mcast_packets: "" rx_total_bytes: "" rx_total_packets: "" @@ -276,6 +289,7 @@ parsed_sample: tx_crc_fcs: "" tx_dropped: "" tx_errors: "" + tx_filtered: "" tx_mcast_packets: "" tx_total_bytes: "" tx_total_packets: "" diff --git a/tests/aruba_aoscx/show_interface/show_interface5.raw b/tests/aruba_aoscx/show_interface/show_interface5.raw new file mode 100644 index 0000000000..a585a6c50a --- /dev/null +++ b/tests/aruba_aoscx/show_interface/show_interface5.raw @@ -0,0 +1,177 @@ +Interface 1/1/1 is up + Admin state is up + Link state: up for 1 month (since Thu Mar 19 22:11:41 GMT 2026) + Link transitions: 25 + Description: Generic-FW01-link + Persona: + Hardware: Ethernet, MAC Address: bc:d7:a5:aa:bb:01 + MTU 1500 + Type 1G-SX / 1G SFP SX + Full-duplex + qos trust none + Speed 1000 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + Rate collection interval: 300 seconds + + Rate RX TX Total (RX+TX) + ---------------- -------------------- -------------------- -------------------- + Mbits / sec 0.00 0.00 0.00 + KPkts / sec 0.00 0.00 0.00 + Unicast 0.00 0.00 0.00 + Multicast 0.00 0.00 0.00 + Broadcast 0.00 0.00 0.00 + Utilization % 0.00 0.00 0.00 + + Statistic RX TX Total + ---------------- -------------------- -------------------- -------------------- + Packets 426532925762 289433120397 715966046159 + Unicast 426529938844 289390890725 715920829569 + Multicast 2986918 38510812 41497730 + Broadcast 0 3718860 3718860 + Bytes 432110265724967 125750100128348 557860365853315 + Jumbos 13255730326 1398455884 14654186210 + Dropped 0 0 0 + Filtered 33259205 42 33259247 + Pause Frames 0 0 0 + Errors 0 0 0 + CRC/FCS 0 n/a 0 + Collision n/a 0 0 + Runts 0 n/a 0 + Giants 0 n/a 0 + +Interface 1/1/7 is up + Admin state is up + Link state: up for 2 months (since Mon Feb 16 02:50:07 GMT 2026) + Link transitions: 45 + Description: Core-to-DC1 + Persona: + Hardware: Ethernet, MAC Address: bc:d7:a5:aa:bb:02 + MTU 1500 + Type 10G-SR / 10G SFP+ SR + Full-duplex + qos trust none + Speed 10000 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + VLAN Mode: access + Access VLAN: 5 + Rate collection interval: 300 seconds + + Rate RX TX Total (RX+TX) + ---------------- -------------------- -------------------- -------------------- + Mbits / sec 0.00 0.01 0.01 + KPkts / sec 0.00 0.02 0.02 + Unicast 0.00 0.00 0.00 + Multicast 0.00 0.01 0.01 + Broadcast 0.00 0.01 0.01 + Utilization % 0.00 0.00 0.00 + + Statistic RX TX Total + ---------------- -------------------- -------------------- -------------------- + Packets 656375294 1184647042 1841022336 + Unicast 654860098 639066094 1293926192 + Multicast 1513019 339353458 340866477 + Broadcast 2177 206227490 206229667 + Bytes 491394340524 234866344691 726260685215 + Jumbos 0 0 0 + Dropped 0 0 0 + Filtered 39 691 730 + Pause Frames 0 0 0 + Errors 0 0 0 + CRC/FCS 0 n/a 0 + Collision n/a 0 0 + Runts 0 n/a 0 + Giants 0 n/a 0 + +Interface 1/1/9 is down + Admin state is up + State information: No XCVR installed + Link state: down for 1 year (since Tue Nov 26 17:26:53 GMT 2024) + Link transitions: 0 + Description: Core-to-Edge + Persona: + Hardware: Ethernet, MAC Address: bc:d7:a5:aa:bb:03 + MTU 1500 + Type -- + Full-duplex + qos trust none + Speed 0 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + L3 Counters: Rx Disabled, Tx Disabled + Rate collection interval: 300 seconds + + Rate RX TX Total (RX+TX) + ---------------- -------------------- -------------------- -------------------- + Mbits / sec 0.00 0.00 0.00 + KPkts / sec 0.00 0.00 0.00 + Unicast 0.00 0.00 0.00 + Multicast 0.00 0.00 0.00 + Broadcast 0.00 0.00 0.00 + Utilization % 0.00 0.00 0.00 + + Statistic RX TX Total + ---------------- -------------------- -------------------- -------------------- + Packets 0 0 0 + Unicast 0 0 0 + Multicast 0 0 0 + Broadcast 0 0 0 + Bytes 0 0 0 + Jumbos 0 0 0 + Dropped 0 0 0 + Filtered 0 0 0 + Pause Frames 0 0 0 + Errors 0 0 0 + CRC/FCS 0 n/a 0 + Collision n/a 0 0 + Runts 0 n/a 0 + Giants 0 n/a 0 + +Interface 1/1/10 is down (Administratively down) + Admin state is down + State information: No XCVR installed + Link state: down for 1 year (since Tue Nov 26 17:26:53 GMT 2024) + Link transitions: 0 + Description: + Persona: + Hardware: Ethernet, MAC Address: bc:d7:a5:aa:bb:04 + MTU 1500 + Type -- + Full-duplex + qos trust none + Speed 0 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + L3 Counters: Rx Disabled, Tx Disabled + Rate collection interval: 300 seconds + + Rate RX TX Total (RX+TX) + ---------------- -------------------- -------------------- -------------------- + Mbits / sec 0.00 0.00 0.00 + KPkts / sec 0.00 0.00 0.00 + Unicast 0.00 0.00 0.00 + Multicast 0.00 0.00 0.00 + Broadcast 0.00 0.00 0.00 + Utilization % 0.00 0.00 0.00 + + Statistic RX TX Total + ---------------- -------------------- -------------------- -------------------- + Packets 0 0 0 + Unicast 0 0 0 + Multicast 0 0 0 + Broadcast 0 0 0 + Bytes 0 0 0 + Jumbos 0 0 0 + Dropped 0 0 0 + Filtered 0 0 0 + Pause Frames 0 0 0 + Errors 0 0 0 + CRC/FCS 0 n/a 0 + Collision n/a 0 0 + Runts 0 n/a 0 + Giants 0 n/a 0 diff --git a/tests/aruba_aoscx/show_interface/show_interface5.yml b/tests/aruba_aoscx/show_interface/show_interface5.yml new file mode 100644 index 0000000000..b7236849ca --- /dev/null +++ b/tests/aruba_aoscx/show_interface/show_interface5.yml @@ -0,0 +1,170 @@ +--- +parsed_sample: + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Ethernet" + if_type: "1G-SX" + interface: "1/1/1" + interface_desc: "Generic-FW01-link" + ip_address: "" + link_admin: "up" + link_state_info: "" + link_status: "up" + link_transitions: "25" + mac_address: "bc:d7:a5:aa:bb:01" + mtu: "1500" + qos_trust: "none" + rx_broadcast_packets: "0" + rx_crc_fcs: "0" + rx_dropped: "0" + rx_errors: "0" + rx_filtered: "33259205" + rx_mcast_packets: "2986918" + rx_total_bytes: "432110265724967" + rx_total_packets: "426532925762" + rx_unicast_packets: "426529938844" + secondary_ip_address: [] + speed: "1000 Mb/s" + tx_broadcast_packets: "3718860" + tx_collision: "0" + tx_crc_fcs: "n/a" + tx_dropped: "0" + tx_errors: "0" + tx_filtered: "42" + tx_mcast_packets: "38510812" + tx_total_bytes: "125750100128348" + tx_total_packets: "289433120397" + tx_unicast_packets: "289390890725" + vlan_access: "" + vlan_mode: "" + vlan_native: "" + vlan_trunk: [] + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Ethernet" + if_type: "10G-SR" + interface: "1/1/7" + interface_desc: "Core-to-DC1" + ip_address: "" + link_admin: "up" + link_state_info: "" + link_status: "up" + link_transitions: "45" + mac_address: "bc:d7:a5:aa:bb:02" + mtu: "1500" + qos_trust: "none" + rx_broadcast_packets: "2177" + rx_crc_fcs: "0" + rx_dropped: "0" + rx_errors: "0" + rx_filtered: "39" + rx_mcast_packets: "1513019" + rx_total_bytes: "491394340524" + rx_total_packets: "656375294" + rx_unicast_packets: "654860098" + secondary_ip_address: [] + speed: "10000 Mb/s" + tx_broadcast_packets: "206227490" + tx_collision: "0" + tx_crc_fcs: "n/a" + tx_dropped: "0" + tx_errors: "0" + tx_filtered: "691" + tx_mcast_packets: "339353458" + tx_total_bytes: "234866344691" + tx_total_packets: "1184647042" + tx_unicast_packets: "639066094" + vlan_access: "5" + vlan_mode: "access" + vlan_native: "" + vlan_trunk: [] + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Ethernet" + if_type: "--" + interface: "1/1/9" + interface_desc: "Core-to-Edge" + ip_address: "" + link_admin: "up" + link_state_info: "" + link_status: "down" + link_transitions: "0" + mac_address: "bc:d7:a5:aa:bb:03" + mtu: "1500" + qos_trust: "none" + rx_broadcast_packets: "0" + rx_crc_fcs: "0" + rx_dropped: "0" + rx_errors: "0" + rx_filtered: "0" + rx_mcast_packets: "0" + rx_total_bytes: "0" + rx_total_packets: "0" + rx_unicast_packets: "0" + secondary_ip_address: [] + speed: "0 Mb/s" + tx_broadcast_packets: "0" + tx_collision: "0" + tx_crc_fcs: "n/a" + tx_dropped: "0" + tx_errors: "0" + tx_filtered: "0" + tx_mcast_packets: "0" + tx_total_bytes: "0" + tx_total_packets: "0" + tx_unicast_packets: "0" + vlan_access: "" + vlan_mode: "" + vlan_native: "" + vlan_trunk: [] + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Ethernet" + if_type: "--" + interface: "1/1/10" + interface_desc: "" + ip_address: "" + link_admin: "down" + link_state_info: "" + link_status: "down" + link_transitions: "0" + mac_address: "bc:d7:a5:aa:bb:04" + mtu: "1500" + qos_trust: "none" + rx_broadcast_packets: "0" + rx_crc_fcs: "0" + rx_dropped: "0" + rx_errors: "0" + rx_filtered: "0" + rx_mcast_packets: "0" + rx_total_bytes: "0" + rx_total_packets: "0" + rx_unicast_packets: "0" + secondary_ip_address: [] + speed: "0 Mb/s" + tx_broadcast_packets: "0" + tx_collision: "0" + tx_crc_fcs: "n/a" + tx_dropped: "0" + tx_errors: "0" + tx_filtered: "0" + tx_mcast_packets: "0" + tx_total_bytes: "0" + tx_total_packets: "0" + tx_unicast_packets: "0" + vlan_access: "" + vlan_mode: "" + vlan_native: "" + vlan_trunk: [] diff --git a/tests/aruba_aoscx/show_interface/show_interface6.raw b/tests/aruba_aoscx/show_interface/show_interface6.raw new file mode 100644 index 0000000000..1a41e9635d --- /dev/null +++ b/tests/aruba_aoscx/show_interface/show_interface6.raw @@ -0,0 +1,31 @@ +Interface loopback101 is up + Admin state is up + VRF name is VRF_RED + Description: + Hardware: Loopback, MAC Address: bc:d7:a5:aa:bb:cc + IPv4 address 192.0.2.151/32 + MTU 1500 + Type -- + Full-duplex + Speed 0 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + MDI mode: none + L3 Counters: Rx Disabled, Tx Disabled + +Interface loopback102 is up + Admin state is up + VRF name is VRF_BLUE + Description: + Hardware: Loopback, MAC Address: bc:d7:a5:aa:bb:cc + IPv4 address 192.0.2.152/32 + MTU 1500 + Type -- + Full-duplex + Speed 0 Mb/s + Auto-negotiation is off + Flow-control: off + Error-control: off + MDI mode: none + L3 Counters: Rx Disabled, Tx Disabled diff --git a/tests/aruba_aoscx/show_interface/show_interface6.yml b/tests/aruba_aoscx/show_interface/show_interface6.yml new file mode 100644 index 0000000000..e281fefefc --- /dev/null +++ b/tests/aruba_aoscx/show_interface/show_interface6.yml @@ -0,0 +1,86 @@ +--- +parsed_sample: + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Loopback" + if_type: "--" + interface: "loopback101" + interface_desc: "" + ip_address: "192.0.2.151/32" + link_admin: "up" + link_state_info: "" + link_status: "up" + link_transitions: "" + mac_address: "bc:d7:a5:aa:bb:cc" + mtu: "1500" + qos_trust: "" + rx_broadcast_packets: "" + rx_crc_fcs: "" + rx_dropped: "" + rx_errors: "" + rx_filtered: "" + rx_mcast_packets: "" + rx_total_bytes: "" + rx_total_packets: "" + rx_unicast_packets: "" + secondary_ip_address: [] + speed: "0 Mb/s" + tx_broadcast_packets: "" + tx_collision: "" + tx_crc_fcs: "" + tx_dropped: "" + tx_errors: "" + tx_filtered: "" + tx_mcast_packets: "" + tx_total_bytes: "" + tx_total_packets: "" + tx_unicast_packets: "" + vlan_access: "" + vlan_mode: "" + vlan_native: "" + vlan_trunk: [] + - aggregated_interfaces: [] + auto_neg: "off" + duplex: "Full" + error_control: "off" + flow_control: "off" + hw_type: "Loopback" + if_type: "--" + interface: "loopback102" + interface_desc: "" + ip_address: "192.0.2.152/32" + link_admin: "up" + link_state_info: "" + link_status: "up" + link_transitions: "" + mac_address: "bc:d7:a5:aa:bb:cc" + mtu: "1500" + qos_trust: "" + rx_broadcast_packets: "" + rx_crc_fcs: "" + rx_dropped: "" + rx_errors: "" + rx_filtered: "" + rx_mcast_packets: "" + rx_total_bytes: "" + rx_total_packets: "" + rx_unicast_packets: "" + secondary_ip_address: [] + speed: "0 Mb/s" + tx_broadcast_packets: "" + tx_collision: "" + tx_crc_fcs: "" + tx_dropped: "" + tx_errors: "" + tx_filtered: "" + tx_mcast_packets: "" + tx_total_bytes: "" + tx_total_packets: "" + tx_unicast_packets: "" + vlan_access: "" + vlan_mode: "" + vlan_native: "" + vlan_trunk: []