Skip to content

Commit

Permalink
Added RUNTS, GIANTS, FRAME, and OVERRUN (networktocode#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mycol authored and cppmonkey committed Oct 25, 2023
1 parent d28c3d1 commit 82869d5
Show file tree
Hide file tree
Showing 6 changed files with 391 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ntc_templates/templates/cisco_ios_show_interfaces.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ Value INPUT_PPS (\d+)
Value OUTPUT_PPS (\d+)
Value INPUT_PACKETS (\d+)
Value OUTPUT_PACKETS (\d+)
Value RUNTS (\d+)
Value GIANTS (\d+)
Value INPUT_ERRORS (\d+)
Value CRC (\d+)
Value FRAME (\d+)
Value OVERRUN (\d+)
Value ABORT (\d+)
Value OUTPUT_ERRORS (\d+)
Value VLAN_ID (\d+)
Expand All @@ -48,8 +52,9 @@ Start
^.*input\s+rate\s+${INPUT_RATE}\s+\w+/sec,\s+${INPUT_PPS}\s+packets.+$$
^.*output\s+rate\s+${OUTPUT_RATE}\s+\w+/sec,\s+${OUTPUT_PPS}\s+packets.+$$
^\s+${INPUT_PACKETS}\s+packets\s+input,\s+\d+\s+bytes,\s+\d+\s+no\s+buffer\s*$$
^\s+${INPUT_ERRORS}\s+input\s+errors,\s+${CRC}\s+CRC,\s+\d+\s+frame,\s+\d+\s+overrun,\s+\d+\s+ignored\s*$$
^\s+${INPUT_ERRORS}\s+input\s+errors,\s+${CRC}\s+CRC,\s+\d+\s+frame,\s+\d+\s+overrun,\s+\d+\s+ignored,\s+${ABORT}\s+abort\s*$$
^\s+${RUNTS}\s+runts,\s+${GIANTS}\s+giants,\s+\d+\s+throttles\s*$$
^\s+${INPUT_ERRORS}\s+input\s+errors,\s+${CRC}\s+CRC,\s+${FRAME}\s+frame,\s+${OVERRUN}\s+overrun,\s+\d+\s+ignored\s*$$
^\s+${INPUT_ERRORS}\s+input\s+errors,\s+${CRC}\s+CRC,\s+${FRAME}\s+frame,\s+${OVERRUN}\s+overrun,\s+\d+\s+ignored,\s+${ABORT}\s+abort\s*$$
^\s+${OUTPUT_PACKETS}\s+packets\s+output,\s+\d+\s+bytes,\s+\d+\s+underruns\s*$$
^\s+${OUTPUT_ERRORS}\s+output\s+errors,\s+\d+\s+collisions,\s+\d+\s+interface\s+resets\s*$$
# Capture time-stamp if vty line has command time-stamping turned on
Expand Down
32 changes: 32 additions & 0 deletions tests/cisco_ios/show_interfaces/cisco_ios_show_interfaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ parsed_sample:
output_pps: "0"
input_packets: "324"
output_packets: "703"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -57,8 +61,12 @@ parsed_sample:
output_pps: "0"
input_packets: "83"
output_packets: "15513"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -89,8 +97,12 @@ parsed_sample:
output_pps: "2"
input_packets: "8677"
output_packets: "420798"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -121,8 +133,12 @@ parsed_sample:
output_pps: "2"
input_packets: "8638"
output_packets: "420819"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -153,8 +169,12 @@ parsed_sample:
output_pps: "2"
input_packets: "8627"
output_packets: "420790"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -185,8 +205,12 @@ parsed_sample:
output_pps: "0"
input_packets: "85"
output_packets: "0"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -217,8 +241,12 @@ parsed_sample:
output_pps: "0"
input_packets: "0"
output_packets: "0"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: "0"
output_errors: "0"
vlan_id: ""
Expand Down Expand Up @@ -249,8 +277,12 @@ parsed_sample:
output_pps: "0"
input_packets: "0"
output_packets: "4"
runts: "0"
giants: "0"
input_errors: "0"
crc: "0"
frame: "0"
overrun: "0"
abort: ""
output_errors: ""
vlan_id: ""
Expand Down
Loading

0 comments on commit 82869d5

Please sign in to comment.