Skip to content

Commit

Permalink
Bugfix: ASA - show_interface - Adds missing case of no '([value])' va…
Browse files Browse the repository at this point in the history
…lues for duplex and speed.
  • Loading branch information
Brenton Dube committed Oct 25, 2020
1 parent d322c77 commit 37252cf
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/cisco_asa_show_interface.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Start
^.*BW\s+${BANDWIDTH},\s+DLY\s+${DELAY}
^.*\(${DUPLEX}\),\s+Auto-Speed\(${SPEED}\)
^.*\(${DUPLEX}\),\s+\d+\s+Mbps\(${SPEED}\)
^.*Duplex,\s+Auto-Speed
^.*Description:\s+${DESCRIPTION}
^.*MAC\s+address\s+${ADDRESS},\s+MTU\s+${MTU}
^.*MAC\s+address\s+${ADDRESS},\s+MTU\s+not\s+set
Expand Down
29 changes: 29 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Interface GigabitEthernet0/0 "outside", is up, line protocol is up
Hardware is i82540EM rev03, BW 1000 Mbps, DLY 10 usec
Full-Duplex, Auto-Speed
Input flow control is unsupported, output flow control is off
Description: to iosv-1
MAC address fa16.3eb0.c3d3, MTU 1500
IP address 10.0.0.5, subnet mask 255.255.255.252
2 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 pause input, 0 resume input
0 L2 decode drops
1 packets output, 0 bytes, 0 underruns
0 pause output, 0 resume output
0 output errors, 0 collisions, 2 interface resets
0 late collisions, 0 deferred
0 input reset drops, 0 output reset drops
input queue (blocks free curr/low): hardware (511/511)
output queue (blocks free curr/low): hardware (511/511)
Traffic Statistics for "outside":
2 packets input, 381 bytes
1 packets output, 28 bytes
2 packets dropped
1 minute input rate 0 pkts/sec, 0 bytes/sec
1 minute output rate 0 pkts/sec, 0 bytes/sec
1 minute drop rate, 0 pkts/sec
5 minute input rate 0 pkts/sec, 0 bytes/sec
5 minute output rate 0 pkts/sec, 0 bytes/sec
5 minute drop rate, 0 pkts/sec
26 changes: 26 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
parsed_sample:
- address: "fa16.3eb0.c3d3"
bandwidth: "1000 Mbps"
delay: "10 usec"
description: "to iosv-1"
duplex: ""
fivemin_drop_rate: "0"
fivemin_in_pps: "0"
fivemin_in_rate: "0"
fivemin_out_pps: "0"
fivemin_out_rate: "0"
hardware_type: "i82540EM rev03"
interface: "GigabitEthernet0/0"
interface_zone: "outside"
ip_address: "10.0.0.5"
link_status: "up"
mtu: "1500"
net_mask: "255.255.255.252"
onemin_drop_rate: "0"
onemin_in_pps: "0"
onemin_in_rate: "0"
onemin_out_pps: "0"
onemin_out_rate: "0"
protocol_status: "up"
speed: ""

0 comments on commit 37252cf

Please sign in to comment.