Skip to content

Commit

Permalink
Merge pull request #209 from jvanderaa/patch-1
Browse files Browse the repository at this point in the history
Update with virtual interfaces
  • Loading branch information
jmcgill298 authored May 23, 2018
2 parents 54d7571 + 219b512 commit 5f1c5a8
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/cisco_asa_show_interface.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Value FIVEMIN_OUT_RATE (\d+)
Value FIVEMIN_DROP_RATE (\d+)

Start
^Interface.* -> Continue.Record
^.*Interface ${INTERFACE} "${INTERFACE_ZONE}", is ${LINK_STATUS}.*protocol is ${PROTOCOL_STATUS}
^\s+Hardware is ${HARDWARE_TYPE} -> Continue
^.*BW ${BANDWIDTH}.*DLY ${DELAY}
Expand All @@ -36,4 +37,4 @@ Start
^.*1 minute drop rate, ${ONEMIN_DROP_RATE}
^.*5 minute input rate ${FIVEMIN_IN_PPS} pkts/sec,\s+${FIVEMIN_IN_RATE} bytes/sec
^.*5 minute output rate ${FIVEMIN_OUT_PPS} pkts/sec,\s+${FIVEMIN_OUT_RATE} bytes/sec
^.*5 minute drop rate, ${FIVEMIN_DROP_RATE} -> Record
^.*5 minute drop rate, ${FIVEMIN_DROP_RATE}
72 changes: 72 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface.parsed
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,75 @@ parsed_sample:
onemin_out_rate: '117'
protocol_status: up
speed: 1000 Mbps
- address: 'fa16.3eb0.c3d3'
bandwidth: ''
delay: ''
description: 'DMZ (Vl3)'
duplex: ''
fivemin_drop_rate: ''
fivemin_in_pps: ''
fivemin_in_rate: ''
fivemin_out_pps: ''
fivemin_out_rate: ''
hardware_type: ''
interface: 'DMZ'
interface_zone: 'DMZ'
ip_address: '10.6.2.1'
link_status: 'up'
mtu: '1500'
net_mask: '255.255.255.0'
onemin_drop_rate: ''
onemin_in_pps: ''
onemin_in_rate: ''
onemin_out_pps: ''
onemin_out_rate: ''
protocol_status: 'up'
speed: ''
- address: 'fa16.3eb0.c3d3'
bandwidth: ''
delay: ''
description: 'outside(Vl2)'
duplex: ''
fivemin_drop_rate: ''
fivemin_in_pps: ''
fivemin_in_rate: ''
fivemin_out_pps: ''
fivemin_out_rate: ''
hardware_type: ''
interface: 'outside'
interface_zone: 'outside-3'
ip_address: '10.12.16.237'
link_status: 'up'
mtu: '1500'
net_mask: '255.255.255.248'
onemin_drop_rate: ''
onemin_in_pps: ''
onemin_in_rate: ''
onemin_out_pps: ''
onemin_out_rate: ''
protocol_status: 'up'
speed: ''
- address: 'fa16.3eb0.c3d3'
bandwidth: ''
delay: ''
description: ''
duplex: ''
fivemin_drop_rate: ''
fivemin_in_pps: ''
fivemin_in_rate: ''
fivemin_out_pps: ''
fivemin_out_rate: ''
hardware_type: ''
interface: 'inside'
interface_zone: 'inside'
ip_address: '10.6.10.1'
link_status: 'up'
mtu: '1500'
net_mask: '255.255.255.0'
onemin_drop_rate: ''
onemin_in_pps: ''
onemin_in_rate: ''
onemin_out_pps: ''
onemin_out_rate: ''
protocol_status: 'up'
speed: ''
23 changes: 23 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface.raw
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,26 @@ Interface Management0/0 "mgmt", is up, line protocol is up
5 minute output rate 0 pkts/sec, 11 bytes/sec
5 minute drop rate, 0 pkts/sec
Management-only interface. Blocked 0 through-the-device packets
Interface DMZ "DMZ", is up, line protocol is up
Description: DMZ (Vl3)
MAC address fa16.3eb0.c3d3, MTU 1500
IP address 10.6.2.1, subnet mask 255.255.255.0
Traffic Statistics for "DMZ":
10797302304 packets input, 7672861881962 bytes
4822409435 packets output, 1511083097851 bytes
868027 packets dropped
Interface outside "outside-3", is up, line protocol is up
Description: outside(Vl2)
MAC address fa16.3eb0.c3d3, MTU 1500
IP address 10.12.16.237, subnet mask 255.255.255.248
Traffic Statistics for "outside-3":
668040831 packets input, 193650939031 bytes
700470696 packets output, 316092320235 bytes
26397124 packets dropped
Interface inside "inside", is up, line protocol is up
MAC address fa16.3eb0.c3d3, MTU 1500
IP address 10.6.10.1, subnet mask 255.255.255.0
Traffic Statistics for "inside":
7645054611 packets input, 2415587779568 bytes
4906203211 packets output, 778812612541 bytes
32105760 packets dropped

0 comments on commit 5f1c5a8

Please sign in to comment.