Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cisco asa show interface updates #1824

Merged
Merged
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
4 changes: 2 additions & 2 deletions ntc_templates/templates/cisco_asa_show_interface.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Start
^.*\(${DUPLEX}\),\s+\(${SPEED}\)
^.*Duplex,\s+Auto-Speed
^.*Description:\s+${DESCRIPTION}
^.*VLAN\s+identifier\s+${VLAN_ID}
^.*VLAN\s+identifier\s+(${VLAN_ID}|(?:none))
^.*MAC\s+address\s+${MAC_ADDRESS},\s+MTU\s+${MTU}
^.*MAC\s+address\s+${MAC_ADDRESS},\s+MTU\s+not\s+set
^\s+Available\s+but\s+not\s+configured\s+via\s+nameif
^\s+Available\s+but\s+not\s+configured\s+(?:with\s+VLAN|via\s+nameif)
^.*MAC\s+address\s+N/A,\s+MTU\s+${MTU}
^.*IP\s+address\s+${IP_ADDRESS},\s+subnet\s+mask\s+${NETMASK}
^.*1\s+minute\s+input\s+rate\s+${ONEMIN_IN_PPS}\s+pkts/sec,\s+${ONEMIN_IN_RATE}\s+bytes/sec
Expand Down
2 changes: 1 addition & 1 deletion ntc_templates/templates/cisco_asa_show_version.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Start
^VPN\s+Load\s+Balancing\s*:
^Configuration\s+register\s+is
^Key\s+Version\s*:
^This\s+platform\s+has\s+an
^This\s+platform\s+has\s+a
^Running\s+Permanent\s+Activation\s+Key\s*:
^Configuration\s+has\s+not\s+been\s+modified
^\s{6,}\d+\s+CPUs
Expand Down
21 changes: 21 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface4.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Interface GigabitEthernet1/2.20 "", is up, line protocol is up
Hardware is i354 rev03, BW 1000 Mbps, DLY 10 usec
VLAN identifier none
Available but not configured with VLAN or via nameif
Interface GigabitEthernet1/3 "", is administratively down, line protocol is down
Hardware is i354 rev03, BW 1000 Mbps, DLY 10 usec
Auto-Duplex, Auto-Speed
Input flow control is unsupported, output flow control is off
Available but not configured via nameif
MAC address 1234.5678.9ABC, MTU not set
IP address unassigned
0 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
0 packets output, 0 bytes, 0 underruns
0 pause output, 0 resume output
0 output errors, 0 collisions, 1 interface resets
0 late collisions, 0 deferred
0 input reset drops, 0 output reset drops
66 changes: 66 additions & 0 deletions tests/cisco_asa/show_interface/cisco_asa_show_interface4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
parsed_sample:
- bandwidth: "1000 Mbps"
bonded_port: ""
bonded_port_members: ""
delay: "10 usec"
description: ""
duplex: ""
fivemin_drop_rate: ""
fivemin_in_pps: ""
fivemin_in_rate: ""
fivemin_out_pps: ""
fivemin_out_rate: ""
hardware_type: "i354 rev03"
interface: "GigabitEthernet1/2.20"
interface_zone: ""
ip_address: ""
link_status: "up"
mac_address: ""
mtu: ""
netmask: ""
onemin_drop_rate: ""
onemin_in_pps: ""
onemin_in_rate: ""
onemin_out_pps: ""
onemin_out_rate: ""
protocol_status: "up"
speed: ""
tunnel_destination_ip: ""
tunnel_ipsec_profile: ""
tunnel_mode: ""
tunnel_source_interface: ""
tunnel_source_ip: ""
vlan_id: ""
- bandwidth: "1000 Mbps"
bonded_port: ""
bonded_port_members: ""
delay: "10 usec"
description: ""
duplex: ""
fivemin_drop_rate: ""
fivemin_in_pps: ""
fivemin_in_rate: ""
fivemin_out_pps: ""
fivemin_out_rate: ""
hardware_type: "i354 rev03"
interface: "GigabitEthernet1/3"
interface_zone: ""
ip_address: ""
link_status: "administratively down"
mac_address: "1234.5678.9ABC"
mtu: ""
netmask: ""
onemin_drop_rate: ""
onemin_in_pps: ""
onemin_in_rate: ""
onemin_out_pps: ""
onemin_out_rate: ""
protocol_status: "down"
speed: ""
tunnel_destination_ip: ""
tunnel_ipsec_profile: ""
tunnel_mode: ""
tunnel_source_interface: ""
tunnel_source_ip: ""
vlan_id: ""
55 changes: 55 additions & 0 deletions tests/cisco_asa/show_version/cisco_asa_show_version4.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Cisco Adaptive Security Appliance Software Version 9.16(3)19
SSP Operating System Version 2.10(1.207)
Device Manager Version 7.18(1)152

Compiled on Wed 03-Aug-22 03:28 GMT by builders
System image file is "disk0:/asa9-16-3-19-lfbff-k8.SPA"
Config file at boot was "startup-config"

asa1 up 1 year 97 days

Hardware: ISA-3000-2C2F, 8192 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
Internal ATA Compact Flash, 14336MB
BIOS Flash M25P64 @ 0xfed01000, 16384KB


1: Ext: GigabitEthernet1/1 : address is c26c.5531.9a6e, irq 255
2: Ext: GigabitEthernet1/2 : address is 8e40.4a87.b466, irq 255
3: Ext: GigabitEthernet1/3 : address is 1c06.c894.7a97, irq 255
4: Ext: GigabitEthernet1/4 : address is 3a8d.db44.5557, irq 255
5: Int: Internal-Data1/1 : address is 70cf.7e81.9101, irq 255
6: Int: Internal-Data1/2 : address is 435f.d309.232a, irq 0
7: Int: Internal-Control1/1 : address is d9e9.218d.e220, irq 0
8: Int: Internal-Data1/3 : address is 0c45.93df.97a6, irq 0
9: Ext: Management1/1 : address is b63f.1592.7a17, irq 0
10: Int: Internal-Data1/4 : address is ad46.152b.74bd, irq 0
The Running Activation Key feature: 2 security contexts exceed the limit on the platform, reduced to 0 security contexts.

Licensed features for this platform:
Maximum Physical Interfaces : Unlimited perpetual
Maximum VLANs : 5 perpetual
Inside Hosts : Unlimited perpetual
Failover : Disabled perpetual
Encryption-DES : Enabled perpetual
Encryption-3DES-AES : Enabled perpetual
Carrier : Disabled perpetual
AnyConnect Premium Peers : 2 perpetual
AnyConnect Essentials : Disabled perpetual
Other VPN Peers : 5 perpetual
Total VPN Peers : 7 perpetual
AnyConnect for Mobile : Disabled perpetual
AnyConnect for Cisco VPN Phone : Disabled perpetual
Advanced Endpoint Assessment : Disabled perpetual
Shared License : Disabled perpetual
Total TLS Proxy Sessions : 2 perpetual
Botnet Traffic Filter : Disabled perpetual
Cluster : Disabled perpetual

This platform has a Base license.

Serial Number: 9AT1L9EX0DF
Running Permanent Activation Key: 0x1 0x2 0x3 0x4 0x5
Configuration register is 0x1
Image type : Release
Key Version : A
Configuration last modified by some_user at 09:40:52.309 CST Thu Jun 6 2024
31 changes: 31 additions & 0 deletions tests/cisco_asa/show_version/cisco_asa_show_version4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
parsed_sample:
- version: "9.16(3)19"
device_mgr_version: "7.18(1)152"
compile_date: "03-Aug-22"
image: "disk0:/asa9-16-3-19-lfbff-k8.SPA"
hostname: "asa1"
uptime: "1 year 97 days"
hardware: "ISA-3000-2C2F, 8192 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)"
model: ""
flash: "14336MB"
interfaces:
- "GigabitEthernet1/1"
- "GigabitEthernet1/2"
- "GigabitEthernet1/3"
- "GigabitEthernet1/4"
- "Internal-Data1/1"
- "Internal-Data1/2"
- "Internal-Control1/1"
- "Internal-Data1/3"
- "Management1/1"
- "Internal-Data1/4"
license_mode: ""
license_state: ""
max_intf: "Unlimited"
max_vlans: "5"
failover: "Disabled"
cluster: "Disabled"
serial:
- "9AT1L9EX0DF"
last_mod: "some_user at 09:40:52.309 CST Thu Jun 6 2024"
Loading