Skip to content

Commit

Permalink
Added input and output pps for cisco_ios_show_interfaces (networktoco…
Browse files Browse the repository at this point in the history
…de#1277)

Co-authored-by: Lamoni Finlayson <[email protected]>
Co-authored-by: patryk <[email protected]>
  • Loading branch information
3 people authored and cppmonkey committed Oct 25, 2023
1 parent 683d166 commit 099ff97
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ntc_templates/templates/cisco_ios_show_interfaces.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Value LAST_OUTPUT_HANG (.+?)
Value QUEUE_STRATEGY (.+)
Value INPUT_RATE (\d+)
Value OUTPUT_RATE (\d+)
Value INPUT_PPS (\d+)
Value OUTPUT_PPS (\d+)
Value INPUT_PACKETS (\d+)
Value OUTPUT_PACKETS (\d+)
Value INPUT_ERRORS (\d+)
Expand All @@ -43,8 +45,8 @@ Start
^\s+Last\s+input\s+${LAST_INPUT},\s+output\s+${LAST_OUTPUT},\s+output\s+hang\s+${LAST_OUTPUT_HANG}\s*$$
^\s+Queueing\s+strategy:\s+${QUEUE_STRATEGY}\s*$$
^\s+${DUPLEX},\s+${SPEED},.+media\stype\sis\s${MEDIA_TYPE}$$
^.*input\s+rate\s+${INPUT_RATE}.+$$
^.*output\s+rate\s+${OUTPUT_RATE}.+$$
^.*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*$$
Expand Down
16 changes: 16 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 @@ -21,6 +21,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "0"
input_pps: "0"
output_pps: "0"
input_packets: "324"
output_packets: "703"
input_errors: "0"
Expand Down Expand Up @@ -51,6 +53,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "0"
input_pps: "0"
output_pps: "0"
input_packets: "83"
output_packets: "15513"
input_errors: "0"
Expand Down Expand Up @@ -81,6 +85,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "1000"
input_pps: "0"
output_pps: "2"
input_packets: "8677"
output_packets: "420798"
input_errors: "0"
Expand Down Expand Up @@ -111,6 +117,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "1000"
input_pps: "0"
output_pps: "2"
input_packets: "8638"
output_packets: "420819"
input_errors: "0"
Expand Down Expand Up @@ -141,6 +149,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "2000"
input_pps: "0"
output_pps: "2"
input_packets: "8627"
output_packets: "420790"
input_errors: "0"
Expand Down Expand Up @@ -171,6 +181,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "0"
input_pps: "0"
output_pps: "0"
input_packets: "85"
output_packets: "0"
input_errors: "0"
Expand Down Expand Up @@ -201,6 +213,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "0"
input_pps: "0"
output_pps: "0"
input_packets: "0"
output_packets: "0"
input_errors: "0"
Expand Down Expand Up @@ -231,6 +245,8 @@ parsed_sample:
queue_strategy: "fifo"
input_rate: "0"
output_rate: "0"
input_pps: "0"
output_pps: "0"
input_packets: "0"
output_packets: "4"
input_errors: "0"
Expand Down
Loading

0 comments on commit 099ff97

Please sign in to comment.