Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions ntc_templates/templates/aruba_aoscx_show_interface.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -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+)
Expand All @@ -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+)

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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+
Expand Down
34 changes: 34 additions & 0 deletions tests/aruba_aoscx/show_interface/show_interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -661,6 +693,7 @@ parsed_sample:
rx_crc_fcs: ""
rx_dropped: ""
rx_errors: ""
rx_filtered: ""
rx_mcast_packets: ""
rx_total_bytes: ""
rx_total_packets: ""
Expand All @@ -672,6 +705,7 @@ parsed_sample:
tx_crc_fcs: ""
tx_dropped: ""
tx_errors: ""
tx_filtered: ""
tx_mcast_packets: ""
tx_total_bytes: ""
tx_total_packets: ""
Expand Down
4 changes: 4 additions & 0 deletions tests/aruba_aoscx/show_interface/show_interface1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down
Loading
Loading